blob: dc189d6fc7e7904d0219d0e559e00b00ad7d41ea [file] [log] [blame]
//@ 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);