blob: 125e1d27f18abc8d494e07483b74bdac2d0f18dd [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function bar(map) {
for (let [key, value] of map) {
if (value - 1 !== key)
throw new Error("Bad iteration!");
}
}
noInline(bar);
function foo() {
let map = new Map;
for (let i = 0; i < 10000; i++)
map.set(i, i+1);
let start = Date.now();
for (let i = 0; i < 100; i++)
bar(map);
const verbose = false;
if (verbose)
print(Date.now() - start);
}
foo();