Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
exist null 9685973.0 Ops/sec
exist hasOwnProperty 9677341.0 Ops/sec
nonexist null 9865830.0 Ops/sec
nonexist hasOwnProperty 9691279.0 Ops/sec
Script Preparation code:
Tests:
  • exist null

  • exist hasOwnProperty

  • nonexist null

  • nonexist hasOwnProperty