Run details:
Mozilla/5.0 (Linux; Android 11; AC2001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36
Chrome Mobile 97
Android
Mobile
2 years ago
Test name Executions per second
Object.entries 5768.5 Ops/sec
Object.keys 7550.5 Ops/sec
Object.keys with extra array 4947.6 Ops/sec
Object.entries without array 5871.5 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array