Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 976268928.0 Ops/sec
Object in 940152896.0 Ops/sec
Array.indexOf 330323.1 Ops/sec
direct 931586560.0 Ops/sec
Array includes 359954.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes