push/pop vs unshift/shift (v33)

Revision 33 of this benchmark created on


Preparation HTML

<script>
  var pl = ['a', 'b', 'c', 'd'];
  var sl = ['b', 'c', 'd', 'e'];
  var al = ['b', 'c', 'd', 'e'];
  var e, a, v;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Push/Pop
pl.push('e');
ready
Unshift/Shift
sl.unshift('a');
ready
Push/Access/Pop
al[al.length]='a';
ready

Revisions

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