Test case name | Result |
---|---|
Object.keys().length | |
for in i++ | |
Object.entries().length | |
Object.values().length |
Test name | Executions per second |
---|---|
Object.keys().length | 194.8 Ops/sec |
for in i++ | 41.2 Ops/sec |
Object.entries().length | 71.0 Ops/sec |
Object.values().length | 694.7 Ops/sec |