Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Windows 7
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 303314528.0 Ops/sec
Object in 306486240.0 Ops/sec
Array.indexOf 124972.4 Ops/sec
direct 303545376.0 Ops/sec
Array includes 98569.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes