ES6 String Literals vs. String Concatenation (v43)

Revision 43 of this benchmark created on


Setup

var first = 'abcdef';
var second = 'uvwxyz';

Test runner

Ready to run.

Testing in
TestOps/sec
ES6 with variable
var test = `alphabet: ${first}hijklm${second}nopqrst`;
ready
String concatenation with variable
var test = 'alphabet: '+first+'hijklm'+second+'nopqrst';
ready
String concatenation with concat
var test = 'alphabet: '.concat(first, 'hijklm', second, 'nopqrst');
ready

Revisions

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