Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Linux
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 2525511.8 Ops/sec
Object in 1808968.6 Ops/sec
Array.indexOf 476596.2 Ops/sec
direct 2356453.0 Ops/sec
Array includes 406138.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes