Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 3a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
Object.entries 13868.7 Ops/sec
Object.keys 18364.9 Ops/sec
Object.keys with extra array 11676.6 Ops/sec
Object.entries without array 14562.0 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array