Run details:
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Ubuntu
Desktop
2 years ago
Test name Executions per second
Object.hasOwnProperty 105348448.0 Ops/sec
Object in 105541248.0 Ops/sec
Array.indexOf 48205.9 Ops/sec
direct 135148896.0 Ops/sec
Array includes 60779.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;