Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15
Safari 14
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 4293410.5 Ops/sec
Object in 4350070.0 Ops/sec
Array.indexOf 354369.2 Ops/sec
direct 4278725.0 Ops/sec
Array includes 425585.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;