HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 26 community runs

Desktop Results:
Chrome 20 runs
Set
174.0M/s
Array
93.3M/s

Fastest: Set (1.9x faster)

View exact numbers
  • Set: 173,979,648 ops/sec
  • Array: 93,308,944 ops/sec
Firefox 6 runs
Set
1833.9M/s
Array
52.6M/s

Fastest: Set (34.9x faster)

View exact numbers
  • Set: 1,833,933,568 ops/sec
  • Array: 52,594,256 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
    Set

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
Firefox 151 on Linux
View result in a separate tab
Set
2496.7M/s
Array
63.3M/s
View exact numbers
Test name Executions per second
Set 2,496,749,568 Ops/sec
Array 63,275,104 Ops/sec