concat vs + vs join (v33)

Revision 33 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 !', 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...', 'There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...');
ready
+
'Coucou ' + 'c\'est ' + 'nous !' + 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...' + 'There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...';
ready
join
['Coucou ', 'c\'est ', 'nous !','Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...','There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...'].join();
ready

Revisions

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