Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48
Windows
Other
8 years ago
Test name Executions per second
concat() 14123679.0 Ops/sec
plus_operator 250487104.0 Ops/sec
Script Preparation code:
AخA
 
var string1 = "Hello ";
var string2 = " world!";
Tests:
  • concat()

     
    var message = string1.concat(string2);
  • plus_operator

     
    var message = string1 + string2;