concat vs + vs join (v14)

Revision 14 of this benchmark created on


Description

How to concat strings faster.

Test runner

Ready to run.

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

Revisions

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