Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
forEach
297/s
for
249/s
array.entries
240/s

Fastest: forEach (1.2x faster)

View exact numbers
  • forEach: 297 ops/sec
  • for: 249 ops/sec
  • array.entries: 240 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
    array.entries
    for

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
for
3K/s
array.entries
3K/s
forEach
2K/s
View exact numbers
Test name Executions per second
for 2,826 Ops/sec
array.entries 2,663 Ops/sec
forEach 2,453 Ops/sec