join/concat (v227)

Revision 227 of this benchmark created on


Setup

var data = [],
    count = 10000;
while (count--) {
 data.push('a');
}

Test runner

Ready to run.

Testing in
TestOps/sec
concat
var res = '',
    count = 10000;
for (var i=0; i< count; i++) {
 res += data[i];
}
ready
join
res = data.join('');
ready
map (dumb but why not)
var res = data.map(v => v).join('')
ready

Revisions

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