Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
for
120.3M/s
forEach
27K/s
map
19K/s

Fastest: for (6385.4x faster)

View exact numbers
  • for: 120,265,960 ops/sec
  • forEach: 27,429 ops/sec
  • map: 18,834 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
    map
    for

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Mac OS X 10.15.7
View result in a separate tab
for
120.4M/s
forEach
28K/s
map
19K/s
View exact numbers
Test name Executions per second
for 120,386,832 Ops/sec
forEach 27,861 Ops/sec
map 18,819 Ops/sec