Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88
Windows
Desktop
3 years ago
Test name Executions per second
using ` to concat string 411882496.0 Ops/sec
using + to concat string 1304556160.0 Ops/sec
using concat() to concat string 50652660.0 Ops/sec
Script Preparation code:
AخA
 
var a = 'aaaaaaaaaaaaaaaaaa'
Tests:
  • using ` to concat string

     
    `aaa ${a}`
  • using + to concat string

     
    'aaa ' + a
  • using concat() to concat string

     
    'aaa '.concat(a)