Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Chrome 69
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 3312684.8 Ops/sec
Object in 1897116.2 Ops/sec
Array.indexOf 406032.2 Ops/sec
direct 2819039.5 Ops/sec
Array includes 401155.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;