array clear

Benchmark created on


Setup

var a = [1,2,3,4,5,6,7,8,9];

Test runner

Ready to run.

Testing in
TestOps/sec
by elements
a[0] = a[1] = a[2] = 0;
ready
by splice
a.splice (0,3, 0, 0, 0);
ready

Revisions

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