array

Benchmark created on


Description

array

Test runner

Ready to run.

Testing in
TestOps/sec
array1
var one = {};
var two = {};
var three = {};
var four = {};

var a = [one, two, three, four];

for (var i = 0; i < a.length; i++) {
  if (a[i] == three) {
    break;
  }
}
ready
array2
var one = {};
var two = {};
var three = {};
var four = {};

var a = [one, two, three, four];

a.indexOf(three)
ready

Revisions

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