mirror of
https://github.com/Noratrieb/benchmarks.git
synced 2026-01-14 18:55:02 +01:00
never underestimate a jit
This commit is contained in:
parent
44de39a2a5
commit
a8eacce3c8
4 changed files with 18 additions and 10 deletions
|
|
@ -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`)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue