Run details:
Mozilla/5.0 (Linux; Android 10; Nokia 7 plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
Object.entries 11453.0 Ops/sec
Object.keys 16331.2 Ops/sec
Object.keys with extra array 10232.3 Ops/sec
Object.entries without array 12138.9 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array