Run details:
Mozilla/5.0 (Linux; Android 13; I2214) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
one year ago
Test name Executions per second
Object.entries 12723.5 Ops/sec
Object.keys 22334.6 Ops/sec
Object.keys with extra array 9051.3 Ops/sec
Object.entries without array 18881.9 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array