Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.93 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 86
iOS 14.0
Mobile
3 years ago
Test name Executions per second
Object.entries 73395.1 Ops/sec
Object.keys 54115.4 Ops/sec
Object.keys with extra array 29614.6 Ops/sec
Object.entries without array 75516.9 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array


;