string-concat

Benchmark created by fantactuka on


Test runner

Ready to run.

Testing in
TestOps/sec
Concat
var a = "";

for (var i = 0; i < 100; i++) {
  a = a + "------------------------------";
}

return a;
ready
Array#join
var a = [];

for (var i = 0; i < 100; i++) {
  a.push("------------------------------");
}

return a.join("");
ready

Revisions

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

  • Revision 1: published by fantactuka on