Tests:
-
Object.entries
-
Object.keys
-
Object.keys with extra array
-
Object.entries without array
-
for .. of
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Chrome 145 on Mac OS X 10.15.7
View result in a separate tab
Object.keys with extra array
316K/s
Object.entries without array
111K/s
View exact numbers
| Test name |
Executions per second |
|
✓
for .. of
|
54,261,264 Ops/sec |
|
Object.keys
|
362,605 Ops/sec |
|
Object.keys with extra array
|
316,121 Ops/sec |
|
Object.entries without array
|
111,017 Ops/sec |
|
Object.entries
|
49,453 Ops/sec |
Do you really want to delete benchmark?