String Concatenation

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
Indirect Concat
''.concat(a, ' ').concat(b);
ready
Triple Concat
''.concat(a, ' ', b);
ready

Revisions

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