Flush "puffs bench"'s stdout.

This commit is contained in:
Nigel Tao committed 2017-07-16 23:27:36 +10:00
1 parent 50e091f976
commit 4b4473cc91
1 file changed
+3
+3
View File
@@ -84,6 +84,9 @@ void bench_finish(uint64_t reps, uint64_t n_bytes) {
name, cc, reps, nanos / reps, //
(int)(kb_per_s / 1000), (int)(kb_per_s % 1000));
}
// Flush stdout so that "puffs bench | tee etc" still prints its numbers as
// soon as they are available.
fflush(stdout);
}
int main(int argc, char** argv) {