shift() vs [] (v29)

Revision 29 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
Shift
e = arr.shift();
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.