Some interesting benchmarks were posted on the [std-proposals] mailing list. For detailed information, check the mailing list archive: std-proposals.
For comparison, in our modularized Windows app, we see a reduction in full build time from about 3 minutes to 2 minutes due to using "import std". We are currently using the MSVC compiler with MSBuild, with 1148 C++ source files, 558 of which contain "export module". We have 4223 imports, of which 357 are "import std".
About two months ago, I created an experimental branch in our (closed) source code repository that replaces every single "import std" with the minimally required #includes of the standard library headers. This was done in our fully modularized code base.
Submitted by: /u/tartaruga232 [link]
[comments]
Blogger's Review: This benchmarking demonstrates the immense potential of modular programming, particularly when leveraging the standard library. By reducing build times, developers can significantly enhance productivity, making it a practice worth promoting in real-world projects.