Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
Firefox 71
Ubuntu
Desktop
4 years ago
Test name Executions per second
Object.hasOwnProperty 10244905.0 Ops/sec
Object in 10322434.0 Ops/sec
Array.indexOf 214263.9 Ops/sec
direct 10246874.0 Ops/sec
Array includes 250566.3 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes