Files
sousa-gecko/tools/profiler/tests/browser/test_dedup_script.js
T

9 lines
206 B
JavaScript

// Script for testing source deduplication
const start = performance.now();
let result = 0;
while (performance.now() - start < 10) {
for (let i = 0; i < 100; i++) {
result += Math.random() * i;
}
}