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

Revision 37 of this benchmark created on


Test runner

Ready to run.

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

Revisions

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