HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
uniq
10.3M/s
lodash
8.9M/s
set
5.5M/s

Fastest: uniq (1.9x faster)

View exact numbers
  • uniq: 10,340,687 ops/sec
  • lodash: 8,891,711 ops/sec
  • set: 5,543,346 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
    set
    lodash
    uniq

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126 on Mac OS X 10.15.7
View result in a separate tab
uniq
7.9M/s
lodash
7.0M/s
set
4.2M/s
View exact numbers
Test name Executions per second
uniq 7,933,398 Ops/sec
lodash 6,953,493 Ops/sec
set 4,225,498 Ops/sec