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

Revision 111 of this benchmark created on


Test runner

Ready to run.

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

Revisions

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