itoa used correctly is faster than numtoa used correctly
https://github.com/mmstick/numtoa/issues/4#issuecomment-274293855
Based on the benchmark code in #4 (closed) but writing to Vec<u8>, itoa is about 10% faster.
let mut null = Vec::new();
for number in 0..100_000_000u64 {
null.clear();
/* write */
}
numtoa: 995 ms
itoa: 866 ms
std: 2803 ms
This is an important use case because it is a good model of what serde_json::to_string
is doing, for example.