3 // Tests the performance of completely polymorphic strict equality.
7 for (var i = 0; i < 1000; ++i) {
9 array.push((i%2) == 0);
16 var numStrictEqual = 0;
17 for (var i = 0; i < array.length; ++i) {
18 for (var j = i + 1; j < array.length; ++j) {
19 if (array[i] === array[j])
24 if (numStrictEqual != 249500)
25 throw "Incorrect result: " + numStrictEqual;