Tests:
-
warmup
-
for
-
for ... of
-
forEach
-
map
-
reduce
-
while
-
some
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Linux
View result in a separate tab
View exact numbers
| Test name |
Executions per second |
|
✓
warmup
|
36,069,444 Ops/sec |
|
while
|
524,435 Ops/sec |
|
forEach
|
524,038 Ops/sec |
|
reduce
|
523,252 Ops/sec |
|
for ... of
|
512,577 Ops/sec |
|
for
|
508,704 Ops/sec |
|
map
|
494,741 Ops/sec |
|
some
|
488,919 Ops/sec |
Do you really want to delete benchmark?