blob: 916bf4ee0388df70ea6c2bd0cbf769f89fb5b3cf [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
//@ runDefault
let script = "(() => {";
for (let i = 0; i < 1000; ++i) {
script += `let x${i} = ${i};\n`;
}
for (let i = 0; i < 1000; ++i) {
script += `function f${i}() { return "foo"; }\n`;
}
script += "})();"
let start = Date.now();
for (let i = 0; i < 10; ++i) {
$.evalScript(`cacheBust = ${Math.random()}; ${script}`);
}
if (false)
print(Date.now() - start);