Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Windows
Desktop
4 years ago
Test name Executions per second
Object.hasOwnProperty 28516222.0 Ops/sec
Object in 27657644.0 Ops/sec
Array.indexOf 481931.2 Ops/sec
direct 27030594.0 Ops/sec
Array includes 427525.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;