Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Mac OS X 10.15
Desktop
one month ago
Test name Executions per second
Object.entries 236489.3 Ops/sec
Object.keys 169453.0 Ops/sec
Object.keys with extra array 93639.2 Ops/sec
Object.entries without array 248641.3 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array