4 ms·
You are just measuring initialization time. The global "C" locale used by printf is statically initialized. With constexpr that could be done in a C++ library i
by ncmncm 7y ago
You are just measuring initialization time. The global "C" locale used by printf is statically initialized. With constexpr that could be done in a C++ library if anybody cared. Runtime spent initializing might matter for startup in an embedded system, but they tend not to use cout much.
You could submit a PR constexpr-ing std::cout initialization.