Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3780.0 Safari/537.36
Chrome 76
Mac OS X 10.12.6
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 2446610.2 Ops/sec
Object in 1875915.5 Ops/sec
Array.indexOf 470091.8 Ops/sec
direct 2621404.2 Ops/sec
Array includes 411263.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;