Run details:
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
Chrome 73
Linux
Desktop
5 years ago
Test name Executions per second
Object.entries 9488.9 Ops/sec
Object.keys 17025.3 Ops/sec
Object.keys with extra array 10747.6 Ops/sec
Object.entries without array 9367.1 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array


;