Pop vs Splice (v8)

Revision 8 of this benchmark created on


Setup

var x = [];
    for (var i = 0; i < 100; ++i) {
      x.push(i);
    }

Test runner

Ready to run.

Testing in
TestOps/sec
Pop
x.pop();
ready
Splice
x.splice(-1, 1);
ready

Revisions

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