Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Linux
Desktop
9 months ago
Test name Executions per second
for-loop 60038.1 Ops/sec
for..of 175157.3 Ops/sec
Array.find() 374247.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for-loop

  • for..of

  • Array.find()