Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15
Mobile Safari 15
iOS 15.4
Mobile
2 years ago
Test name Executions per second
Object.hasOwnProperty 2880876.0 Ops/sec
Object in 2683107.0 Ops/sec
Array.indexOf 167129.9 Ops/sec
direct 2912207.8 Ops/sec
Array includes 110005.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;