Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
filter.map
89K/s
forEach
82K/s
map.filter
38K/s

Fastest: filter.map (2.4x faster)

View exact numbers
  • filter.map: 88,925 ops/sec
  • forEach: 82,486 ops/sec
  • map.filter: 37,641 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
    filter.map
    map.filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
filter.map
40K/s
forEach
37K/s
map.filter
16K/s
View exact numbers
Test name Executions per second
filter.map 40,092 Ops/sec
forEach 36,713 Ops/sec
map.filter 16,445 Ops/sec