Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
Mac OS X 10.14
Desktop
5 years ago
Test name Executions per second
getOwnPropertyNames 7462978.5 Ops/sec
Cached property names 33318110.0 Ops/sec
for in 27962500.0 Ops/sec
Object.keys 7730797.5 Ops/sec
Script Preparation code:
Tests:
  • getOwnPropertyNames

  • Cached property names

  • for in

  • Object.keys