aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmark.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-12-30 10:45:22 +0100
committerSylvain Munaut <tnt@246tNt.com>2015-12-30 10:45:22 +0100
commitd392a89cc8c27946b3e4d7590fc0d56265f45a87 (patch)
tree6317338ba8ca23033a374038a78e9b1512e67706 /src/benchmark.c
parentd72b0f654f23087326a4f8ee8473abdf0f35b0c9 (diff)
benchmark: Make sure to print to stderr
stdout can be used for data output ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/benchmark.c')
-rw-r--r--src/benchmark.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/benchmark.c b/src/benchmark.c
index e2c14a6..91e2ce5 100644
--- a/src/benchmark.c
+++ b/src/benchmark.c
@@ -37,7 +37,8 @@ void benchmark_dump(void)
for (j = 0; j < bc->enc_used; j++)
total += bc->enc[j];
- printf("Codec %u (ENC): %llu cycles for %u frames => "
+ fprintf(stderr,
+ "Codec %u (ENC): %llu cycles for %u frames => "
"%llu cycles/frame\n", i, total, bc->enc_used,
total / bc->enc_used);
}
@@ -47,7 +48,8 @@ void benchmark_dump(void)
for (j = 0; j < bc->dec_used; j++)
total += bc->dec[j];
- printf("Codec %u (DEC): %llu cycles for %u frames => "
+ fprintf(stderr,
+ "Codec %u (DEC): %llu cycles for %u frames => "
"%llu cycles/frame\n", i, total, bc->dec_used,
total / bc->dec_used);
}