Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
Object.entries 6.1 Ops/sec
for..in 5.4 Ops/sec
Object.keys 5.4 Ops/sec
Object.keys no entry 5.6 Ops/sec
for..in no array 5.1 Ops/sec
Object.entries no array 5.5 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • for..in

  • Object.keys

  • Object.keys no entry

  • for..in no array

  • Object.entries no array