Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Firefox 67
Ubuntu
Desktop
5 years ago
Test name Executions per second
Object.keys 1190.6 Ops/sec
Object.getOwnPropertyNames 1168.9 Ops/sec
for... in... 2245.1 Ops/sec
Script Preparation code:
Tests:
  • Object.keys

  • Object.getOwnPropertyNames

  • for... in...


;