never underestimate a jit

This commit is contained in:
nora 2021-06-06 21:08:22 +02:00
parent 44de39a2a5
commit a8eacce3c8
4 changed files with 18 additions and 10 deletions

View file

@ -9,6 +9,8 @@ for (let i = 0; i < 10; i++) {
times.push(totalTime);
}
console.assert(primes(10_000_000).length === 664_579);
const average = times.reduce((a, b) => a + b, 0) / times.length;
console.log(`Average time was ${average}ms`)