HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
_.uniq(arrayOfOptions)
21.4M/s
[...new Set(arrayOfOptions)]
9.6M/s

Fastest: _.uniq(arrayOfOptions) (2.2x faster)

View exact numbers
  • _.uniq(arrayOfOptions): 21,448,266 ops/sec
  • [...new Set(arrayOfOptions)]: 9,585,930 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
    _.uniq(arrayOfOptions)
    [...new Set(arrayOfOptions)]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Mac OS X 10.15.7
View result in a separate tab
_.uniq(arrayOfOptions)
21.0M/s
[...new Set(arrayOfOptions)]
9.3M/s
View exact numbers
Test name Executions per second
_.uniq(arrayOfOptions) 21,004,104 Ops/sec
[...new Set(arrayOfOptions)] 9,295,818 Ops/sec