Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 OPR/40.0.2308.90
Opera 40
Windows
Other
7 years ago
Test name Executions per second
Using hasOwnProperty 6.9 Ops/sec
Using Object.keys() 8.5 Ops/sec
Skipping hasOwnProperty() 7.2 Ops/sec
Script Preparation code:
Tests:
  • The slow version

  • Faster version using Object.keys().