Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
Safari 11
Mac OS X 10.13.2
Other
2025 years ago
Test name Executions per second
hasOwnProperty 88170.3 Ops/sec
Object.keys 207724.5 Ops/sec
Script Preparation code:
Tests:
  • hasOwnProperty

  • Object.keys