Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
array
4.3M/s
set
410K/s

Fastest: array (10.5x faster)

View exact numbers
  • array: 4,310,130 ops/sec
  • set: 410,202 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
    set
    array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
array
1.7M/s
set
1.1M/s
View exact numbers
Test name Executions per second
array 1,662,736 Ops/sec
set 1,060,438 Ops/sec