HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
native forEach
44.0M/s
native for
32.5M/s
lodash.forEach
15.8M/s

Fastest: native forEach (2.8x faster)

View exact numbers
  • native forEach: 43,974,404 ops/sec
  • native for: 32,468,874 ops/sec
  • lodash.forEach: 15,800,462 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
    lodash.forEach
    native for
    native forEach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Safari 18 on Mac OS X 10.15.7
View result in a separate tab
native for
138.9M/s
native forEach
74.8M/s
lodash.forEach
66.6M/s
View exact numbers
Test name Executions per second
native for 138,886,976 Ops/sec
native forEach 74,817,680 Ops/sec
lodash.forEach 66,557,124 Ops/sec