Script Preparation code:
AخA
 
var string1 = 'string1';
var string2 = 'string2';
Tests:
  • join

     
    var string3 = [string1, string2].join('');
  • string builder

     
    var string3 = `${string1}${string2}`;
  • string concatenation

     
    var string3 = string1 + string2;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    join
    string builder
    string concatenation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
join 9992921.0 Ops/sec
string builder 15413953.0 Ops/sec
string concatenation 15768366.0 Ops/sec