HTML Preparation code:
Tests:

Historical Performance Data aggregated from 16 community runs

Desktop Results:
Chrome 16 runs
Array.prototype.forEach
111.1M/s
lodash each
7.1M/s

Fastest: Array.prototype.forEach (15.7x faster)

View exact numbers
  • Array.prototype.forEach: 111,064,128 ops/sec
  • lodash each: 7,072,190 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
    Array.prototype.forEach
    lodash each

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Mac OS X 10.15.7
View result in a separate tab
Array.prototype.forEach
103.3M/s
lodash each
9.2M/s
View exact numbers
Test name Executions per second
Array.prototype.forEach 103,297,760 Ops/sec
lodash each 9,193,175 Ops/sec