Tests:
-
Math.min/max with spread
-
forEach
-
Reducer
-
forEach with hasValidValues in loop
-
apply
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133 on Windows
View result in a separate tab
forEach with hasValidValues in loop
1.0M/s
Math.min/max with spread
585K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Reducer
|
1,818,343 Ops/sec |
|
forEach
|
1,667,456 Ops/sec |
|
forEach with hasValidValues in loop
|
1,026,389 Ops/sec |
|
apply
|
687,929 Ops/sec |
|
Math.min/max with spread
|
584,869 Ops/sec |
Do you really want to delete benchmark?