Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Chrome 81
Windows
Desktop
4 years ago
Test name Executions per second
Object.hasOwnProperty 2401022.8 Ops/sec
Object in 1600971.1 Ops/sec
Array.indexOf 625732.1 Ops/sec
direct 2241665.0 Ops/sec
Array includes 750177.4 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;