Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Firefox 83
Linux
Desktop
4 years ago
Test name Executions per second
Object.entries 25825.5 Ops/sec
Object.keys 27997.0 Ops/sec
Object.keys with extra array 13220.9 Ops/sec
Object.entries without array 42734.4 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array