new set vs clear setFastest: clear set (4.2x faster)
10,974,160 ops/sec
2,617,665 ops/sec
83,796,768 ops/sec
0 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| new set | |
| clear set |
| Test name | Executions per second |
|---|---|
| ✓ clear set | 105,082,456 Ops/sec |
| new set | 0 Ops/sec |