unshift vs pop

Benchmark created by Kliment Petrov on


Setup

var a = [1, 2, 3, 5, 7, 89];

Test runner

Ready to run.

Testing in
TestOps/sec
unshift
a.unshift();
ready
pop
a.pop();
ready

Revisions

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

  • Revision 1: published by Kliment Petrov on