Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138
Windows
Desktop
one year ago
for(const item of array)
15.3M/s
for(const [k, v] of Object.entries(object))
3.2M/s
View exact numbers
| Test name |
Executions per second |
|
✓
for(const item of array)
|
15,308,425 Ops/sec |
|
for(const [k, v] of Object.entries(object))
|
3,188,438 Ops/sec |
Tests:
-
for(const item of array)
-
for(const [k, v] of Object.entries(object))