C++ Logo

sg16

Advanced search

Re: Why stdout is the default in std::print? (P2093)

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Tue, 1 Feb 2022 19:18:49 +0100
On 01/02/2022 04.37, Thiago Macieira via SG16 wrote:
> On Sunday, 30 January 2022 12:41:02 PST Dimitrij Mijoski via SG16 wrote:

>> As you can see above, at least on Linux, C++ iostreams are faster than
>> C streams.
>
> You disabled the sync. No one does that. So the benchmark is not realistic.

Do you have any statistics or similar to back up your claim
"No one does that"?

My personal experience is that it's a common recommendation to
disable the synchronization in a C++-only program that doesn't
use stdout/stderr at all.

Jens

Received on 2022-02-01 18:18:56