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
in (true) 16312062.0 Ops/sec
in (false) 15898580.0 Ops/sec
obj.hasOwnProperty (true) 13698974.0 Ops/sec
obj.hasOwnProperty (false) 14348677.0 Ops/sec
prototype.hasOwnProperty.call (true) 5042746.5 Ops/sec
prototype.hasOwnProperty.call (false) 4892277.5 Ops/sec
Script Preparation code:
Tests:
  • in (true)

  • in (false)

  • obj.hasOwnProperty (true)

  • obj.hasOwnProperty (false)

  • prototype.hasOwnProperty.call (true)

  • prototype.hasOwnProperty.call (false)


;