Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Chrome 99
Windows
Desktop
2 years ago
Test name Executions per second
getOwnPropertyNames 4884324.0 Ops/sec
Cached property names 3483315.8 Ops/sec
for in 12003101.0 Ops/sec
Object.keys 4948389.0 Ops/sec
Script Preparation code:
Tests:
  • getOwnPropertyNames

  • Cached property names

  • for in

  • Object.keys