Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
Chrome 77
Mac OS X 10.13.6
Desktop
4 years ago
Test name Executions per second
Object.hasOwnProperty 3733851.2 Ops/sec
Object in 3445000.0 Ops/sec
Array.indexOf 837497.8 Ops/sec
direct 3401485.0 Ops/sec
Array includes 839580.1 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;