Array.prototype.push.apply vs array.push.apply (v5)

Revision 5 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
Array.prototype.push.apply
var a = [];
Array.prototype.push.apply(a, A)
ready
array.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.