HTML Preparation code:
Tests:
  • for-loop

  • for..of

  • Array.find()

  • for-loop with switch

  • for..of with switch

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for-loop
    for..of
    Array.find()
    for-loop with switch
    for..of with switch

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Mobile; Energizer_E241S; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5.1.1
Firefox Mobile 48 on Firefox OS
View result in a separate tab
Test name Executions per second
for-loop 1097850.0 Ops/sec
for..of 553763.7 Ops/sec
Array.find() 26843.0 Ops/sec
for-loop with switch 1203424.0 Ops/sec
for..of with switch 594256.4 Ops/sec