Run details:
Mozilla/5.0 (X11; CrOS x86_64 14268.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.111 Safari/537.36
Chrome 96
Chrome OS 14268.67.0
Desktop
2 years ago
Test name Executions per second
Object.entries 20365.0 Ops/sec
Object.keys 27945.1 Ops/sec
Object.keys with extra array 18889.8 Ops/sec
Object.entries without array 21490.2 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array