Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Linux
Desktop
one year ago
Test name Executions per second
Object.entries 92232.7 Ops/sec
Object.keys 124381.5 Ops/sec
Object.keys with extra array 77811.8 Ops/sec
Object.entries without array 93671.6 Ops/sec
Object.entries for loop 124634.8 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array

  • Object.entries for loop