join vs JSON.stringifyFastest: join (1.5x faster)
10,870,146 ops/sec
7,161,946 ops/sec
Fastest: join (1.9x faster)
6,527,992 ops/sec
3,394,122 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| join | |
| JSON.stringify |
| Test name | Executions per second |
|---|---|
| ✓ join | 8,266,272 Ops/sec |
| JSON.stringify | 4,658,571 Ops/sec |