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

Revision 26 of this benchmark created on


Setup

var boundSliceCall = Array.prototype.slice.call.bind(Array.prototype.slice);
    
    var items = [1, 2, 3, 4, 5];

Test runner

Ready to run.

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

Revisions

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