Set vs ArrayFastest: Array (3.0x faster)
25,057,082 ops/sec
8,294,968 ops/sec
Fastest: Array (2.4x faster)
8,714,846 ops/sec
3,600,444 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 | 19,143,022 Ops/sec |
| Set | 7,388,538 Ops/sec |