concat vs + vs join (v52)

Revision 52 of this benchmark created on


Description

How to concat strings faster.

Setup

var a = 'Coucou ';
    var b = 'c\'est ';
    var c = 'nous !';

Test runner

Ready to run.

Testing in
TestOps/sec
concat
a.concat(b, c);
ready
+
a + b + c;
ready
join
[a, b, c].join();
ready

Revisions

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