Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:83.0) Gecko/20100101 Firefox/83.0
Firefox 83
Mac OS X 10.16
Desktop
4 years ago
Test name Executions per second
Object.entries 46759.0 Ops/sec
Object.keys 45894.8 Ops/sec
Object.keys with extra array 23045.7 Ops/sec
Object.entries without array 78250.8 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array