ES6 String Literals vs. String Concatenation (v8)

Revision 8 of this benchmark created on


Setup

const locale = 'en';
const id = '124078904ghjasvbifh10924h01h4ujb141';

Test runner

Ready to run.

Testing in
TestOps/sec
ES6 with variable
const key = `${id}-${locale}`;
ready
String concatenation with variable
const key = id + locale;
ready

Revisions

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