Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
array.includes 1411.2 Ops/sec
Object.prototype.hasOwnProperty 65704.2 Ops/sec
object.hasOwnProperty 137055.4 Ops/sec
Reflect.has 66023.7 Ops/sec
object[field] 136134.0 Ops/sec
Script Preparation code:
Tests:
  • array.includes

  • Object.prototype.hasOwnProperty

  • object.hasOwnProperty

  • Reflect.has

  • object[field]


;