Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36 OPR/82.0.4227.23
Opera 82
Windows
Desktop
3 years ago
Test name Executions per second
getOwnPropertyNames 3972306.2 Ops/sec
Cached property names 2906294.5 Ops/sec
for in 10175295.0 Ops/sec
Object.keys 4013846.8 Ops/sec
Script Preparation code:
Tests:
  • getOwnPropertyNames

  • Cached property names

  • for in

  • Object.keys