Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0
Firefox 49
Mac OS X 10.11
Other
8 years ago
Test name Executions per second
Using hasOwnProperty 0.1 Ops/sec
Using Object.keys() 0.8 Ops/sec
Skipping hasOwnProperty() 0.1 Ops/sec
Script Preparation code:
Tests:
  • The slow version

  • Faster version using Object.keys().


;