Set vs ArrayFastest: Array (1.7x faster)
9,624,748 ops/sec
5,560,272 ops/sec
Fastest: Array (2.7x faster)
8,224,399 ops/sec
3,047,340 ops/sec
Fastest: Array (2.2x faster)
8,810,843 ops/sec
3,923,664 ops/sec
Fastest: Array (1.7x faster)
8,223,485 ops/sec
4,880,812 ops/sec
Fastest: Array (1.8x faster)
5,373,209 ops/sec
2,972,400 ops/sec
Fastest: Array (2.6x faster)
5,496,774 ops/sec
2,150,411 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Set | |
| Array |
| Test name | Executions per second |
|---|---|
| ✓ Array | 41,179,268 Ops/sec |
| Set | 15,080,558 Ops/sec |