array prototype vs new array

Benchmark created by Mark on


Setup

var ary = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];

Test runner

Ready to run.

Testing in
TestOps/sec
Prototype
Array.prototype.slice.call( ary );
ready
New array
[].slice.call( ary );
ready

Revisions

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