HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 82 community runs

Desktop Results:
Chrome 69 runs
array.forEach
101K/s
_.forEach
97K/s
View exact numbers
  • array.forEach: 101,243 ops/sec
  • _.forEach: 96,590 ops/sec
Firefox 13 runs
_.forEach
77K/s
array.forEach
77K/s
View exact numbers
  • _.forEach: 77,442 ops/sec
  • array.forEach: 77,082 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.forEach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0
Chrome 145 on Windows
View result in a separate tab
array.forEach
202K/s
_.forEach
197K/s
View exact numbers
Test name Executions per second
array.forEach 201,656 Ops/sec
_.forEach 197,196 Ops/sec