Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.3.1
Mobile
8 months ago
Test name Executions per second
Object.entries 5.8 Ops/sec
for..in 5.3 Ops/sec
Object.keys 5.6 Ops/sec
Object.keys no entry 5.9 Ops/sec
for..in no array 5.6 Ops/sec
Object.entries no array 6.0 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • for..in

  • Object.keys

  • Object.keys no entry

  • for..in no array

  • Object.entries no array


;