Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.99 Safari/537.36
Chrome 80
Linux
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 188294.6 Ops/sec
Object in 183883.0 Ops/sec
Array.indexOf 45639.5 Ops/sec
direct 161833.0 Ops/sec
Array includes 45078.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;