Run details:
Mozilla/5.0 (Linux; Android 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
Object.entries 4854.1 Ops/sec
Object.keys 5804.0 Ops/sec
Object.keys with extra array 3543.6 Ops/sec
Object.entries without array 4978.7 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array