Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Windows
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 1407347.6 Ops/sec
Object in 1195987.5 Ops/sec
Array.indexOf 405299.6 Ops/sec
direct 1316560.5 Ops/sec
Array includes 386298.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;