concat vs + vs join (v8)

Revision 8 of this benchmark created by Ben Combee on


Setup

var s1='Coucou ', s2='c\'est ', s3='nous !';

Test runner

Ready to run.

Testing in
TestOps/sec
concat
s1.concat(s2, s3);
ready
+
s1 + s2 + s3;
ready
join
[s1, s2, s3].join();
ready
+=
t = s1;
t += s2;
t += s3;
ready

Revisions

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