concat vs push.apply (v2)

Revision 2 of this benchmark created by satyr on


Preparation HTML

<script>
  A = Array.apply(this, Array(42))
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
concat
var a = [];
a = a.concat(A)
ready
push.apply
var a = [];
a.push.apply(a, A)
ready

Revisions

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