blob: 9a890ab685c675ee5baca618ce5d85b367761760 [file] [log] [blame]
function jank(ms) {
let start = performance.now();
while (performance.now() < start + ms);
}
function jankMany(ms, times) {
for (let i = 0; i < times; i++) {
jank(ms);
}
}