Empty array (v41)

Revision 41 of this benchmark created on


Setup

var A = [1, 2, 3, 4];

Test runner

Ready to run.

Testing in
TestOps/sec
length
A.length = 0;
ready
splice
A.splice(0, A.length);
ready
pop
while (A.length) A.pop();
ready
shift
while (A.length) A.shift();
ready

Revisions

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