String.charAt vs String.sub252,844 ops/sec
251,443 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| String.charAt | |
| String.sub |
| Test name | Executions per second |
|---|---|
| ✓ String.charAt | 342,070 Ops/sec |
| String.sub | 325,698 Ops/sec |