Nested Join + Join (Join x3) vs Loop Push + Join (Join x1 with string) vs Simple Join (Join x1 with arrays) vs Loop Concatenate (string only) vs Template Literal (template literal string with arrays) vs Template Literal + Join (template literal string with join) vs Simple Concatenate + Join| Test case name | Result |
|---|---|
| Nested Join + Join (Join x3) | |
| Loop Push + Join (Join x1 with string) | |
| Simple Join (Join x1 with arrays) | |
| Loop Concatenate (string only) | |
| Template Literal (template literal string with arrays) | |
| Template Literal + Join (template literal string with join) | |
| Simple Concatenate + Join |
| Test name | Executions per second |
|---|---|
| ✓ Loop Concatenate (string only) | 668,217 Ops/sec |
| Template Literal + Join (template literal string with join) | 466,574 Ops/sec |
| Loop Push + Join (Join x1 with string) | 440,950 Ops/sec |
| Simple Concatenate + Join | 402,431 Ops/sec |
| Template Literal (template literal string with arrays) | 339,255 Ops/sec |
| Nested Join + Join (Join x3) | 325,625 Ops/sec |
| Simple Join (Join x1 with arrays) | 303,962 Ops/sec |