Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136
Mac OS X 10.15
Desktop
one year ago
Benchmark.js
Conventional for loop
165K/s
Array.prototype.reduce.call()
161K/s
Array.prototype.forEach.call()
0/s
View exact numbers
| Test name |
Executions per second |
|
✓
Conventional for loop
|
165,188 Ops/sec |
|
Array.prototype.reduce.call()
|
160,735 Ops/sec |
|
Array.prototype.forEach.call()
|
0 Ops/sec |
Tests:
-
Array.prototype.reduce.call()
-
Array.prototype.forEach.call()
-
Conventional for loop