Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
exist null 2904.3 Ops/sec
exist hasOwnProperty 952.8 Ops/sec
nonexist null 2908.4 Ops/sec
nonexist hasOwnProperty 944.7 Ops/sec
nonexist in 2504.3 Ops/sec
exist in 2493.9 Ops/sec
Script Preparation code:
Tests:
  • exist null

  • exist hasOwnProperty

  • nonexist null

  • nonexist hasOwnProperty

  • nonexist in

  • exist in


;