DateTimeFormat single vs toLocaleString single vs DateTimeFormat 100 vs toLocaleString 100 vs DateTimeFormat 10000 vs toLocaleString 10000| Test case name | Result |
|---|---|
| DateTimeFormat single | |
| toLocaleString single | |
| DateTimeFormat 100 | |
| toLocaleString 100 | |
| DateTimeFormat 10000 | |
| toLocaleString 10000 |
| Test name | Executions per second |
|---|---|
| ✓ toLocaleString single | 26,849 Ops/sec |
| DateTimeFormat single | 26,270 Ops/sec |
| toLocaleString 100 | 269 Ops/sec |
| DateTimeFormat 100 | 265 Ops/sec |
| DateTimeFormat 10000 | 3 Ops/sec |
| toLocaleString 10000 | 3 Ops/sec |