Template Literal vs String Concatenation vs Array.join()Fastest: String Concatenation (41.5x faster)
822 ops/sec
473 ops/sec
20 ops/sec
Fastest: String Concatenation (87.8x faster)
2,281 ops/sec
651 ops/sec
26 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Template Literal | |
| String Concatenation | |
| Array.join() |
| Test name | Executions per second |
|---|---|
| ✓ String Concatenation | 1,025 Ops/sec |
| Template Literal | 459 Ops/sec |
| Array.join() | 23 Ops/sec |