remove first x elements from array

Benchmark created on


Setup

var arr = Array.from(Array(10000), (x,i) => i + 1)

Test runner

Ready to run.

Testing in
TestOps/sec
for loop with pop
for( var i=0; i<300; i++ )
 arr.pop();
ready
slice
arr = arr.slice(300);
ready

Revisions

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