Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Chrome 76
Mac OS X 10.14.6
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 3222474.8 Ops/sec
Object in 3001232.5 Ops/sec
Array.indexOf 771707.9 Ops/sec
direct 3121417.8 Ops/sec
Array includes 763913.6 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;