Run details:
Mozilla/5.0 (X11; CrOS x86_64 13443.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4247.0 Safari/537.36
Chrome 87
Chrome OS 13443.0.0
Desktop
4 years ago
Test name Executions per second
Object.entries 35751.5 Ops/sec
Object.keys 50126.9 Ops/sec
Object.keys with extra array 32101.8 Ops/sec
Object.entries without array 38710.6 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array

  • Object.entries without array


;