testpopshift (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var pl = [1, 5, 10, 3];
  var sl = [1, 5, 10, 3];
  var rl = [1, 5, 10, 3];
  
  var p, s, r;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
pop
pl.push(7);
p = pl.pop();
ready
shift
sl.push(7);
s = sl.shift();
ready
rev
rl.push(7);
rl.reverse();
r = sl.shift();
ready

Revisions

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