SplicePush

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Splice
var arr = [0,1,2,3,4,5,6,7,8,9]
x = arr.splice(4, 7);
ready
Push
var arr = [0,1,2,3,4,5,6,7,8,9]
x= []
for (var i=4; i<7; i++){
     x.push(arr[i]);
}
ready

Revisions

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