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 2221555.5 Ops/sec
Object in 2328339.0 Ops/sec
Array.indexOf 295757.8 Ops/sec
direct 2050057.0 Ops/sec
Array includes 294642.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;