concat vs push-join

Benchmark created by mary on


Test runner

Ready to run.

Testing in
TestOps/sec
Concat
var s = '';
for( var i=0 ; i<10000 ; i++ ) { s += 'frog'; }
 
ready
Push-Join
var r = [];
for( var j=0 ; j<10000 ; j++ ) { r.push('frog'); }
r.join();
ready

Revisions

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