shift() vs [] (v28)

Revision 28 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
Pop
e = arr.pop();
ready
[0]
e = arr[0];
ready

Revisions

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