Array vs template literalFastest: template literal (1.2x faster)
6,242,299 ops/sec
5,021,521 ops/sec
Fastest: template literal (7.5x faster)
159,535,520 ops/sec
21,394,362 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array | |
| template literal |
| Test name | Executions per second |
|---|---|
| ✓ template literal | 57,058,992 Ops/sec |
| Array | 9,523,519 Ops/sec |