Run details:
Mozilla/5.0 (Linux; Android 9; vivo 1906) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
Object.entries 6015.3 Ops/sec
Object.keys 7912.4 Ops/sec
Object.keys with extra array 5149.7 Ops/sec
Object.entries without array 6125.7 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array


;