Push vs Splice (v7)

Revision 7 of this benchmark created by jerry on


Setup

var arr = [1, 2, 3];

Test runner

Ready to run.

Testing in
TestOps/sec
Splice Add
arr.splice(1, 1);
ready
Push Add
arr.push(5);
ready

Revisions

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