HTML Preparation code:
Tests:

Historical Performance Data aggregated from 26 community runs

Desktop Results:
Chrome 26 runs
lodash uniq spread
5.9M/s
new Set
4.4M/s
lodash union
3.8M/s

Fastest: lodash uniq spread (1.6x faster)

View exact numbers
  • lodash uniq spread: 5,882,764 ops/sec
  • new Set: 4,393,089 ops/sec
  • lodash union: 3,781,345 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 union
    new Set
    lodash uniq spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146 on Windows
View result in a separate tab
lodash uniq spread
9.9M/s
lodash union
6.5M/s
new Set
4.7M/s
View exact numbers
Test name Executions per second
lodash uniq spread 9,907,050 Ops/sec
lodash union 6,503,472 Ops/sec
new Set 4,691,168 Ops/sec