1 // Tests the performance of completely polymorphic strict equality.
5 for (var i = 0; i < 1000; ++i) {
7 array.push((i%2) == 0);
14 var numStrictEqual = 0;
15 for (var i = 0; i < array.length; ++i) {
16 for (var j = i + 1; j < array.length; ++j) {
17 if (array[i] === array[j])
22 if (numStrictEqual != 249500)
23 throw "Incorrect result: " + numStrictEqual;