Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
Object.hasOwnProperty 23486688.0 Ops/sec
Object in 21713340.0 Ops/sec
Array.indexOf 595599.0 Ops/sec
direct 21890320.0 Ops/sec
Array includes 458555.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;