Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Ubuntu
Desktop
28 days ago
Test name Executions per second
Object.entries 289938.4 Ops/sec
Object.keys 117663.8 Ops/sec
Object.keys with extra array 66461.5 Ops/sec
Object.entries without array 301922.1 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array