HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
lodash.compact
8.2M/s
array filter
1.6M/s

Fastest: lodash.compact (5.1x faster)

View exact numbers
  • lodash.compact: 8,214,276 ops/sec
  • array filter: 1,624,984 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.compact
    array filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Chrome 145 on Linux
View result in a separate tab
array filter
77.3M/s
lodash.compact
66.2M/s
View exact numbers
Test name Executions per second
array filter 77,322,584 Ops/sec
lodash.compact 66,226,748 Ops/sec