Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Windows
Desktop
7 months ago
Test name Executions per second
Object.prototype.hasOwnProperty 2248700.2 Ops/sec
obj.hasOwnProperty 4608469.5 Ops/sec
Object.hasOwn 2396031.8 Ops/sec
Script Preparation code:
Tests:
  • Object.prototype.hasOwnProperty

  • obj.hasOwnProperty

  • Object.hasOwn