shift() vs [] (v30)

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

Revisions

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