ES6 String Literals vs. String Concatenation (v41)

Revision 41 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

Revisions

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