String building (v7)

Revision 7 of this benchmark created on


Setup

let str1 = "abc";
let str2 = "def";

Test runner

Ready to run.

Testing in
TestOps/sec
String.Concat()
let pref = new String("xyz")
let divider = new String("_")
let res = pref.concat(divider.toString(), str1, divider.toString(), str2)
ready
Template literals
let res = `xyz_${str1}_${str2}`
ready

Revisions

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