Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Ubuntu
Desktop
6 years ago
Test name Executions per second
Object.hasOwnProperty 28423932.0 Ops/sec
Object in 28680192.0 Ops/sec
Array.indexOf 631744.8 Ops/sec
direct 26886732.0 Ops/sec
Array includes 614093.1 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes