Run details:
Mozilla/5.0 (Linux; Android 11; SM-G986B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.50 Mobile Safari/537.36
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
Object.entries 37751.1 Ops/sec
Object.keys 57357.6 Ops/sec
Object.keys with extra array 34618.1 Ops/sec
Object.entries without array 37735.0 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array


;