concat/join-with-push/join-without-push (v100)

Revision 100 of this benchmark created on


Setup

for (var res = [], i = 0; i < 10000; i++) {
     res.push('a');
    }
    
    var result = '';

Test runner

Ready to run.

Testing in
TestOps/sec
concat
for (var res = '', i = 0; i < 10000; i++) {
 result += res[i];
}
ready
join-with-push
result = res.join('');
ready
join-without-push
result = res.join('');
ready

Revisions

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