In quiet mode, if the result of the bench is not assumed to be reliable, display -1 instead of the result.

This commit is contained in:
Patrick Pelissier committed 2020-01-04 15:12:59 +01:00
1 parent 935325e0cb
commit f5f16015df
1 file changed
+1 -1
+1 -1
View File
@@ -279,7 +279,7 @@ test(const char library[], size_t n, const config_func_t functions[], int argc,
if (arg.graph) {
fprintf(graph_file, "%f %f\n", n, arg.average ? avg : arg.best ? best : ba);
} else if (arg.quiet) {
printf("%lu\n", (unsigned long)(arg.average ? avg : arg.best ? best : ba));
printf("%ld\n", (long)(arg.average ? avg : arg.best ? best : reliable ? ba : -1));
} else if (arg.repeat > 1) {
if (arg.average == false && arg.best_within == false)
printf ("%20.20s time %lu ms for n = %lu *** BEST ***\n", functions[i].funcname, (unsigned long) best, (unsigned long) n);