Run details:
Mozilla/5.0 (iPad; CPU OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/102.0.5005.87 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 102
iOS 15.0
Tablet
2 years ago
Test name Executions per second
for-loop 503.3 Ops/sec
for..of 38483.6 Ops/sec
Array.find() 86186.7 Ops/sec
indexOf 111509.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for-loop

  • for..of

  • Array.find()

  • indexOf