Run details:
Mozilla/5.0 (X11; CrOS x86_64 14092.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.107 Safari/537.36
Chrome 93
Chrome OS 14092.77.0
Desktop
2 years ago
Test name Executions per second
Object.prototype.hasOwnProperty 741886.9 Ops/sec
obj.hasOwnProperty 1630950.6 Ops/sec
Object.hasOwn 837877.2 Ops/sec
Script Preparation code:
Tests:
  • Object.prototype.hasOwnProperty

  • obj.hasOwnProperty

  • Object.hasOwn