Array.prototype.slice.call() vs [].slice.call()

Benchmark created by Tobias on


Preparation HTML

<script>
  items = [1, 2, 3, 4, 5]
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Array.prototype.slice
Array.prototype.slice.call(items);
ready
[].slice
[].slice.call(items);
ready

Revisions

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