pushvsjoin

Benchmark created on


Description

String creation

Test runner

Ready to run.

Testing in
TestOps/sec
join
var data = [];
for (var i = 0; i < 1000000; i++) {
data.push('i');
}
data.join('');
 
ready
plus
var data = '';
for (var i = 0; i < 1000000; i++) {
data += 'i';
}
 
ready

Revisions

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