HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 65 community runs

Desktop Results:
Chrome 56 runs
uniq for loop
6K/s
Lodash uniqBy
4K/s
new Set() Destructuring
2K/s
uniq by forEach
862/s
uniq by filter
506/s

Fastest: uniq for loop (11.4x faster)

View exact numbers
  • uniq for loop: 5,750 ops/sec
  • Lodash uniqBy: 4,068 ops/sec
  • new Set() Destructuring: 2,467 ops/sec
  • uniq by forEach: 862 ops/sec
  • uniq by filter: 506 ops/sec
Firefox 9 runs
uniq for loop
9K/s
Lodash uniqBy
4K/s
new Set() Destructuring
3K/s
uniq by forEach
185/s
uniq by filter
98/s

Fastest: uniq for loop (93.3x faster)

View exact numbers
  • uniq for loop: 9,166 ops/sec
  • Lodash uniqBy: 3,911 ops/sec
  • new Set() Destructuring: 2,873 ops/sec
  • uniq by forEach: 185 ops/sec
  • uniq by filter: 98 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 uniqBy
    new Set() Destructuring
    uniq for loop
    uniq by forEach
    uniq by filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Chrome 145 on Mac OS X 10.15.7
View result in a separate tab
uniq for loop
14K/s
Lodash uniqBy
5K/s
new Set() Destructuring
2K/s
uniq by forEach
934/s
uniq by filter
515/s
View exact numbers
Test name Executions per second
uniq for loop 13,934 Ops/sec
Lodash uniqBy 4,644 Ops/sec
new Set() Destructuring 2,045 Ops/sec
uniq by forEach 934 Ops/sec
uniq by filter 515 Ops/sec