Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36
Chromium 76
Ubuntu
Desktop
5 years ago
Test name Executions per second
Object.entries 24474.8 Ops/sec
Object.keys 32053.2 Ops/sec
Object.keys with extra array 14539.7 Ops/sec
Object.entries without array 8062.9 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array


;