Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Firefox 5 runs
for (C style)
22.5M/s
forEach
19.1M/s
for...of
15.4M/s

Fastest: for (C style) (1.5x faster)

View exact numbers
  • for (C style): 22,517,124 ops/sec
  • forEach: 19,095,538 ops/sec
  • for...of: 15,430,283 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for...of
    forEach
    for (C style)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0
Firefox 150 on Linux
View result in a separate tab
for (C style)
22.5M/s
forEach
18.9M/s
for...of
15.6M/s
View exact numbers
Test name Executions per second
for (C style) 22,517,124 Ops/sec
forEach 18,887,886 Ops/sec
for...of 15,556,968 Ops/sec