Run details:
Mozilla/5.0 (Linux; Android 11; 2107113SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
Object.entries 33544.1 Ops/sec
Object.keys 44430.6 Ops/sec
Object.keys with extra array 25661.1 Ops/sec
Object.entries without array 33460.4 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array