indexOf

Benchmark created on


Setup

var a = [];
    for (var i = 0; i < 1000; i++) {
      a[i]=i;
    }

Test runner

Ready to run.

Testing in
TestOps/sec
indexOf(0)
a.indexOf(0);
ready
indexOf(9)
a.indexOf(9);
ready
indexOf(99)
a.indexOf(99);
ready
indexOf(999)
a.indexOf(999);
ready

Revisions

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