Script Preparation code:
AخA
 
var string1 = "Hello ";
var string2 = " world!";
Tests:
  • concat()

     
    for(i = 0; i < 1000; i++) {
      var message = string1.concat(string2);
    }
  • plus_operator

     
    for(i = 0; i < 1000; i++) {
      var message = string1 + string2;
    }
  • plus_eq_operator

     
    for(i = 0; i < 1000; i++) {
      string1 += string2;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    concat()
    plus_operator
    plus_eq_operator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
Chrome 84 on Mac OS X 10.15.6
View result in a separate tab
Test name Executions per second
concat() 7898.5 Ops/sec
plus_operator 7727.5 Ops/sec
plus_eq_operator 3007.9 Ops/sec