Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.89 Safari/537.36
Chrome 102
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 7529885.0 Ops/sec
Object in 6651291.0 Ops/sec
Array.indexOf 1112852.8 Ops/sec
direct 6666648.0 Ops/sec
Array includes 1108234.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;