HTML Preparation code:
Tests:

Historical Performance Data aggregated from 17 community runs

Desktop Results:
Chrome 17 runs
for optimized
15.6M/s
for
15.4M/s
reduce
14.4M/s
while
11.4M/s
for of
5.5M/s
forEach
5.2M/s
for in
544K/s
for of babel
2K/s

Fastest: for optimized (7773.8x faster)

View exact numbers
  • for optimized : 15,638,448 ops/sec
  • for: 15,443,394 ops/sec
  • reduce : 14,372,275 ops/sec
  • while: 11,410,351 ops/sec
  • for of: 5,490,128 ops/sec
  • forEach: 5,235,746 ops/sec
  • for in: 543,974 ops/sec
  • for of babel: 2,012 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
    forEach
    for
    for optimized
    reduce
    while
    for in
    for of
    for of babel

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Windows
View result in a separate tab
for optimized
22.0M/s
for
21.5M/s
reduce
20.2M/s
while
14.5M/s
forEach
6.0M/s
for of
3.2M/s
for in
544K/s
for of babel
2K/s
View exact numbers
Test name Executions per second
for optimized 22,005,912 Ops/sec
for 21,546,776 Ops/sec
reduce 20,171,774 Ops/sec
while 14,549,508 Ops/sec
forEach 5,975,196 Ops/sec
for of 3,173,246 Ops/sec
for in 543,974 Ops/sec
for of babel 2,074 Ops/sec