Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Ubuntu
Desktop
4 years ago
Test name Executions per second
Object.entries 41312.8 Ops/sec
Object.keys 35004.3 Ops/sec
Object.keys with extra array 20302.8 Ops/sec
Object.entries without array 50378.3 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array