Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3800.0 Safari/537.36
Chrome 76
Linux
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 3408708.2 Ops/sec
Object in 2399594.8 Ops/sec
Array.indexOf 582733.4 Ops/sec
direct 3255678.0 Ops/sec
Array includes 573948.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes