3 ms·
It doesn't make any difference for something as small as hello world (you can try it). A release build might not have debug info in the sense that -C debuginfo=
by edflsafoiewq 7y ago
It doesn't make any difference for something as small as hello world (you can try it). A release build might not have debug info in the sense that -C debuginfo=0, but it still has plenty of stuff that can be stripped.
You also get the same size if you bypass the println machinery with io::stdout().write_all(b"Hello, world!").