set vs arrayFastest: array (10.5x faster)
4,310,130 ops/sec
410,202 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 | 1,662,736 Ops/sec |
| set | 1,060,438 Ops/sec |