Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Mac OS X 10.14
Desktop
5 years ago
Test name Executions per second
Object.entries 62279.2 Ops/sec
Object.keys 51468.2 Ops/sec
Object.keys with extra array 23161.4 Ops/sec
Object.entries without array 83623.8 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array