Try/catch vs Without try/catchFastest: Without try/catch (15.6x faster)
4,427,802 ops/sec
283,410 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Try/catch | |
| Without try/catch |
| Test name | Executions per second |
|---|---|
| ✓ Without try/catch | 10,046,331 Ops/sec |
| Try/catch | 534,798 Ops/sec |