Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36
Chrome 54
Linux
Other
7 years ago
Test name Executions per second
Object.hasOwnProperty 2578587.8 Ops/sec
Object in 2732028.8 Ops/sec
Array.indexOf 218217.8 Ops/sec
direct 3127377.8 Ops/sec
Array includes 215469.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;