3 let script = "(() => {";
4 for (let i = 0; i < 1000; ++i) {
5 script += `let x${i} = ${i};\n`;
8 for (let i = 0; i < 1000; ++i) {
9 script += `function f${i}() { return "foo"; }\n`;
14 let start = Date.now();
15 for (let i = 0; i < 10; ++i) {
16 $.evalScript(`cacheBust = ${Math.random()}; ${script}`);
20 print(Date.now() - start);