Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Linux
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 1039247232.0 Ops/sec
Object in 1116546816.0 Ops/sec
Array.indexOf 368605.4 Ops/sec
direct 1067465216.0 Ops/sec
Array includes 415596.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;