Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Object.entries 163362.9 Ops/sec
Object.keys 238095.6 Ops/sec
Object.entries without array 169138.5 Ops/sec
For in 235503.4 Ops/sec
For of keys 247680.0 Ops/sec
For of entries 172623.8 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.entries without array

  • For in

  • For of keys

  • For of entries