HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Array Unique
856K/s
Array from Set
586K/s
For Loop
372K/s
Lodash Uniq
324K/s

Fastest: Array Unique (2.6x faster)

View exact numbers
  • Array Unique: 855,905 ops/sec
  • Array from Set: 585,537 ops/sec
  • For Loop: 371,900 ops/sec
  • Lodash Uniq: 323,541 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
    Array from Set
    Lodash Uniq
    Array Unique
    For Loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
Array Unique
858K/s
For Loop
772K/s
Array from Set
740K/s
Lodash Uniq
335K/s
View exact numbers
Test name Executions per second
Array Unique 858,119 Ops/sec
For Loop 771,542 Ops/sec
Array from Set 740,219 Ops/sec
Lodash Uniq 335,368 Ops/sec