Run details:
Mozilla/5.0 (iPad; CPU OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96
iOS 14.8
Tablet
3 years ago
Test name Executions per second
for-loop 868.6 Ops/sec
for..of 42056.0 Ops/sec
Array.find() 114298.9 Ops/sec
indexOf 178390.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for-loop

  • for..of

  • Array.find()

  • indexOf