string gen 99

Benchmark created on


Setup

var n = 25;

Test runner

Ready to run.

Testing in
TestOps/sec
string
str = '';
for (var i = 1; i <= n; i++) {
  str += '$' + i + ', ';
}
ready
array
arr = [];
for (var i = 1; i <= n; i++) {
  arr.push('$' + i);
}
str = arr.join()
ready

Revisions

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