Run details:
Mozilla/5.0 (Linux; Android 11; IN2023) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
Object.entries 34842.4 Ops/sec
Object.keys 52976.8 Ops/sec
Object.keys with extra array 30217.1 Ops/sec
Object.entries without array 36521.4 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array