concat vs + vs join (v38)

Revision 38 of this benchmark created on


Description

How to concat strings faster.

Test runner

Ready to run.

Testing in
TestOps/sec
concat
'Coucou '.concat('c\'est ', 'nous !', 'foobar');
ready
+
'Coucou ' + 'c\'est ' + 'nous !' + 'foobar';
ready
join
['Coucou ', 'c\'est ', 'nous !', 'foobar'].join();
ready

Revisions

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