10 points · by anandnair · 3y ago · 13 comments
Full results can be viewed at - https://anands.me/blog/benchmarking-rust-go-cpp-node
It’s possible the C library you used is faster at converting this particular integer to a string (performance will vary between different ones, and not necessarily with one being always faster than the other) and writing it than rust’s one, but also possible that the C compiler did the string conversion at compile-time, too, and compiled a call to puts (if you printed a newline at the end of your string)
Apocryphal, from memory, many details probably wrong.