Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 3962299.8 Ops/sec
Object in 3646426.8 Ops/sec
Array.indexOf 685235.8 Ops/sec
direct 3643318.2 Ops/sec
Array includes 1036355.3 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;