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

     
    `abc;${rnd()};${rnd()};${rnd()};${rnd()};${rnd()}`
  • string-concatenation

     
    'abc;'+rnd()+';'+rnd()+';'+rnd()+';'+rnd()+';'+rnd()
  • random-number-generation

     
    rnd(); rnd(); rnd(); rnd(); rnd();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    string-interpolation
    string-concatenation
    random-number-generation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78 on Windows
View result in a separate tab
Test name Executions per second
string-interpolation 6222051.0 Ops/sec
string-concatenation 6187665.5 Ops/sec
random-number-generation 21193540.0 Ops/sec