Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Mac OS X 10.13.2
Desktop
6 years ago
Test name Executions per second
Object.entries 13790.2 Ops/sec
Object.keys 18816.4 Ops/sec
Object.keys with extra array 12142.6 Ops/sec
Script Preparation code:
Tests:
  • Object.entries

  • Object.keys

  • Object.keys with extra array