Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61
Windows 7
Desktop
6 years ago
Test name Executions per second
Object.hasOwnProperty 10306068.0 Ops/sec
Object in 10018248.0 Ops/sec
Array.indexOf 275590.2 Ops/sec
direct 10100070.0 Ops/sec
Array includes 250622.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes