Script Preparation code:
AخA
 
var luckyNumber = Math.round(Math.random() * 100);
Tests:
  • string-interpolation

     
    `SomeString:  your lucky number for today is: ${luckyNumber}`
  • string-concatenation

     
    'SomeString: your lucky number for today is: ' + luckyNumber
  • string-concatenation-with-interpolation

     
    'SomeString:' + `your lucky number for today is: ${luckyNumber}`
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    string-interpolation
    string-concatenation
    string-concatenation-with-interpolation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
string-interpolation 32115484.0 Ops/sec
string-concatenation 30769544.0 Ops/sec
string-concatenation-with-interpolation 30898936.0 Ops/sec