Script Preparation code:
Tests:

Historical Performance Data aggregated from 155 community runs

Desktop Results:
Chrome 113 runs
array
29.9M/s
set
21.0M/s

Fastest: array (1.4x faster)

View exact numbers
  • array: 29,921,774 ops/sec
  • set: 21,028,242 ops/sec
Firefox 23 runs
array
15.1M/s
set
5.8M/s

Fastest: array (2.6x faster)

View exact numbers
  • array: 15,116,546 ops/sec
  • set: 5,755,930 ops/sec
Mobile Results:
Chrome 12 runs
array
64.9M/s
set
33.8M/s

Fastest: array (1.9x faster)

View exact numbers
  • array: 64,924,656 ops/sec
  • set: 33,782,480 ops/sec
Safari 7 runs
array
62.9M/s
set
28.3M/s

Fastest: array (2.2x faster)

View exact numbers
  • array: 62,930,528 ops/sec
  • set: 28,291,592 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: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Mac OS X 10.15.7
View result in a separate tab
array
162.5M/s
set
87.4M/s
View exact numbers
Test name Executions per second
array 162,496,544 Ops/sec
set 87,447,760 Ops/sec