Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
one big loop default
2K/s
one big loop no consts
2K/s
View exact numbers
| Test name |
Executions per second |
|
✓
one big loop default
|
2,470 Ops/sec |
|
one big loop no consts
|
2,466 Ops/sec |
|
small loops
|
1,943 Ops/sec |
|
small loops where
|
223 Ops/sec |
Tests:
-
one big loop default
-
one big loop no consts
-
small loops
-
small loops where