Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Mac OS X 10.11.6
Desktop
6 years ago
Test name Executions per second
Object.hasOwnProperty 2976163.8 Ops/sec
Object in 1959964.1 Ops/sec
Array.indexOf 416823.2 Ops/sec
direct 2626519.0 Ops/sec
Array includes 428368.7 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;