concat vs + vs join (v7)

Revision 7 of this benchmark created by Konrad Borowski on


Test runner

Ready to run.

Testing in
TestOps/sec
concat
'Coucou '.concat('c\'est ', 'nous !');
ready
+
'Coucou ' + 'c\'est ' + 'nous !';
ready
join
['Coucou ', 'c\'est ', 'nous !'].join();
ready
String.prototype.concat with array
String.prototype.concat.apply("", ['Coucou ', 'c\'est ', 'nous !'])
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.