HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 43 community runs

Desktop Results:
Chrome 37 runs
Native filter
8.2M/s
lodash compact
6.4M/s
lodash filter
3.6M/s

Fastest: Native filter (2.3x faster)

View exact numbers
  • Native filter: 8,199,564 ops/sec
  • lodash compact: 6,383,402 ops/sec
  • lodash filter: 3,561,646 ops/sec
Firefox 6 runs
lodash compact
8.3M/s
Native filter
6.8M/s
lodash filter
6.1M/s

Fastest: lodash compact (1.4x faster)

View exact numbers
  • lodash compact: 8,296,119 ops/sec
  • Native filter: 6,821,194 ops/sec
  • lodash filter: 6,060,974 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 filter
    lodash compact
    Native 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/139.0.0.0 Safari/537.36
Chrome 139 on Mac OS X 10.15.7
View result in a separate tab
lodash compact
13.1M/s
Native filter
10.4M/s
lodash filter
5.2M/s
View exact numbers
Test name Executions per second
lodash compact 13,064,680 Ops/sec
Native filter 10,399,775 Ops/sec
lodash filter 5,241,556 Ops/sec