Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Windows
Desktop
3 years ago
Test name Executions per second
getOwnPropertyNames 12683142.0 Ops/sec
Cached property names 40067148.0 Ops/sec
for in 44105068.0 Ops/sec
Object.keys 12261347.0 Ops/sec
Script Preparation code:
Tests:
  • getOwnPropertyNames

  • Cached property names

  • for in

  • Object.keys