push/pop vs unshift/shift (v26)

Revision 26 of this benchmark created on


Preparation HTML

<script>
  var arr = ['a', 'b', 'c', 'd'];
var e;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Push/Pop
e = pl.pop();
arr.push(e);
ready
Unshift/Shift
e = pl.pop();
arr.unshift(e);
ready

Revisions

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