string-interpolation vs string-concatenation23,050,488 ops/sec
20,964,840 ops/sec
Fastest: string-concatenation (4.5x faster)
1,589,540,352 ops/sec
351,303,680 ops/sec
Fastest: string-interpolation (1.2x faster)
20,889,124 ops/sec
16,778,860 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| string-interpolation | |
| string-concatenation |
| Test name | Executions per second |
|---|---|
| ✓ string-interpolation | 106,583,856 Ops/sec |
| string-concatenation | 101,049,672 Ops/sec |