join/concat (v16)

Revision 16 of this benchmark created by galambalazs on


Preparation HTML

<script>
  var count = 500;
  var res;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
concat
res = '';
for (var i = count; i--;) {
 res += 'some more text goes here...';
}
ready
join
res = [];
for (var i = count; i--;) {
 res.push('some more text goes here...');
}
res = res.join('');
ready

Revisions

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