apple-m1-pro_macos_clang17.0_03adc84
Time per double (lower is better)
| Method | Time (ns) | Speedup |
|---|---|---|
| zmij | 8.66 | |
| xjb64 | 10.54 | |
| yy | 14.01 | |
| dragonbox | 20.53 | |
| fmt | 22.22 | |
| schubfach | 24.72 | |
| ryu | 36.81 | |
| to_chars | 42.81 | |
| double-conversion | 83.33 | |
| sprintf | 735.29 | |
| ostringstream | 871.43 |
Click any row to use it as the speedup baseline.
Times include a fixed loop-overhead floor of 0.95 ns (measured with a no-op stand-in for dtoa).
ostringstream and sprintf omitted; they are an order of magnitude slower than the rest.
Time vs. digit count (log scale)
Hover or click a method to highlight its series.