“Hello world” is slower in C++ than in C (Linux)
This is such an ignorant and low-effort post.<p>The author did not bother to check whether the delay comes from the library loading time vs. the actual string formatting.<p>He is complaining about a single millisecond difference (that is near the measurement error) and haven&#x27;t bothered to run the entire thing in a loop and get the difference to something meaningful (where the terminal performance can eat away any noticeable differences).<p>He picked a completely unrealistic metric (console output is usually meant to be read by humans, so it was never optimized for +- millisecond performance).<p>He doesn&#x27;t distinguish between the language (C++) and the I&#x2F;O API (printf() vs iostream).<p>The main advantage of C++ is that if you <i>bother</i> to understand how it works, you can let the compiler&#x2F;debugger do a lot of mind-numbing and error-prone work that C developers proudly do by hand (collections, RAII, inline templates with concepts) at exactly 0.0 runtime overhead. The key is &quot;if you bother to understand how it works&quot;. If you randomly pick an arbitrary API and complain how it&#x27;s worse than a different arbitrary API from C for an arbitrary use case, it only shows your own incompetence.