Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.13
Desktop
4 years ago
Test name Executions per second
Object.hasOwnProperty 14841942.0 Ops/sec
Object in 14117490.0 Ops/sec
Array.indexOf 371567.2 Ops/sec
direct 14408705.0 Ops/sec
Array includes 327373.3 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;