Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/91.0.4472.80 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 91
iOS 14.8
Mobile
2 years ago
Test name Executions per second
Object.hasOwnProperty 4456446.0 Ops/sec
Object in 4499786.5 Ops/sec
Array.indexOf 411652.2 Ops/sec
direct 4540184.5 Ops/sec
Array includes 419036.5 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes