Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
one year ago
Benchmark.js
Array.prototype.reduce.call()
255K/s
Array.prototype.forEach.call()
251K/s
Conventional for loop
227K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Array.prototype.reduce.call()
|
255,497 Ops/sec |
|
Array.prototype.forEach.call()
|
250,530 Ops/sec |
|
Conventional for loop
|
226,831 Ops/sec |
Tests:
-
Array.prototype.reduce.call()
-
Array.prototype.forEach.call()
-
Conventional for loop