arguments to array

Benchmark created by dipser on


Preparation HTML

<script>
  var f1 = function() {
   [].slice.call(arguments);
  };
  
  var f2 = function() {
   Array.prototype.slice.call(arguments);
  };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
f1
f1(1, 2, 3, 4, 5);
ready
f2
f2(1, 2, 3, 4, 5);
ready

Revisions

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