Concatenation vs Array Join (v29)

Revision 29 of this benchmark created by sdfsdf2 on


Preparation HTML

<script>
  var str, str2, i, j;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Array.prototype.join
var tmp = new Array(101);
str2 = tmp.join('a');
ready
Concatenation
for (i = 0; i < 100; i++) {
 str += 'a';
}
ready

Revisions

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