Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Chrome 71
Windows 8.1
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 3219979.8 Ops/sec
Object in 2140185.8 Ops/sec
Array.indexOf 471649.5 Ops/sec
direct 2868913.0 Ops/sec
Array includes 481931.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;