String Concatenation (v2)

Revision 2 of this benchmark created on


Setup

const a = 'You lost', b = 'the game';

Test runner

Ready to run.

Testing in
TestOps/sec
Concat
a.concat(' ', b);
ready
Template Literal
`${a} ${b}`;
ready
Addition
a + ' ' + b;
ready

Revisions

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