benchmark: Make sure to print to stderr

stdout can be used for data output ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2015-12-30 10:45:22 +01:00
parent d72b0f654f
commit d392a89cc8
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}