summaryrefslogtreecommitdiff
path: root/bench.c
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2014-10-29 23:47:43 -0500
committerBobby Bingham <koorogi@koorogi.info>2014-10-29 23:47:43 -0500
commit765d14cc7c422a2d12e4c0bfac28062da3b927f7 (patch)
tree2e757d071f8f5ceb950c5576d2f6ccf608d3ab35 /bench.c
parentd95320cafb6d6b4a65f9713e54d83229cea1bbfa (diff)
Set output to unbuffered so results are visible sooner
Diffstat (limited to 'bench.c')
-rw-r--r--bench.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bench.c b/bench.c
index 1317adf..3f77d8d 100644
--- a/bench.c
+++ b/bench.c
@@ -23,6 +23,8 @@ int main()
{
struct timespec start, stop;
+ setvbuf(stdout, NULL, _IONBF, 0);
+
printf("%-*s ", SORT_WIDTH, "");
for (const struct testcase *t = testcases; t->name; t++)
printf("%*s ", TEST_WIDTH, t->name);