HTML Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
array filter
67.5M/s
_.filter
10.6M/s

Fastest: array filter (6.4x faster)

View exact numbers
  • array filter: 67,485,808 ops/sec
  • _.filter: 10,614,138 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 filter
    _.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/136.0.0.0 Safari/537.36
Chrome 136 on Mac OS X 10.15.7
View result in a separate tab
array filter
102.6M/s
_.filter
37.0M/s
View exact numbers
Test name Executions per second
array filter 102,620,648 Ops/sec
_.filter 37,007,640 Ops/sec