Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Linux
Desktop
5 months ago
Test name Executions per second
for-loop 1247.9 Ops/sec
for..of 60053.9 Ops/sec
Array.find() 38915.1 Ops/sec
indexOf 267832.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for-loop

  • for..of

  • Array.find()

  • indexOf