Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96
iOS 15.0
Mobile
3 years ago
Test name Executions per second
Object.entries 173018.1 Ops/sec
Object.keys 126226.8 Ops/sec
Object.keys with extra array 68877.6 Ops/sec
Object.entries without array 183192.9 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array