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

     
    `your lucky number for today is: ${luckyNumber} and unlucky number: ${uluckyNumber} and just another number : ${anotherNumber}`
  • string-concatenation

     
    'your lucky number for today is: ' + luckyNumber + ' and unlucky number: ' + uluckyNumber + ' and just another number : ' + anotherNumber
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    string-interpolation
    string-concatenation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108 on Windows
View result in a separate tab
Test name Executions per second
string-interpolation 3506814.0 Ops/sec
string-concatenation 3392221.5 Ops/sec