Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.13
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 713868288.0 Ops/sec
Object in 712576896.0 Ops/sec
Array.indexOf 251406.4 Ops/sec
direct 710755136.0 Ops/sec
Array includes 197347.1 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes