Run details:
Mozilla/5.0 (Android 10; Mobile; rv:85.0) Gecko/85.0 Firefox/85.0
Firefox Mobile 85
Android
Mobile
3 years ago
Test name Executions per second
Object.entries 32824.7 Ops/sec
Object.keys 32109.4 Ops/sec
Object.keys with extra array 15341.3 Ops/sec
Object.entries without array 51619.9 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array