Run details:
Mozilla/5.0 (Linux; Android 9; moto x4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36
Chrome Mobile 81
Android
Mobile
4 years ago
Test name Executions per second
Object.entries 6470.9 Ops/sec
Object.keys 9608.7 Ops/sec
Object.keys with extra array 6462.9 Ops/sec
Object.entries without array 6581.4 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array