From 1512f4da907fc6770d3ec83276d04abbe5caf668 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 26 Feb 2019 13:38:33 -0800 Subject: [PATCH] Correct the output for multi-threaded benchmark usign `-base10` option. --- wolfcrypt/benchmark/benchmark.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 98dad2691..38d98b856 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -934,8 +934,9 @@ static THREAD_LS_T byte* bench_iv = NULL; /* print final stat */ if (isLast) { if (bstat->type == BENCH_STAT_SYM) { - printf("%-12s%s %8.3f MB/s\n", bstat->desc, - BENCH_ASYNC_GET_NAME(bstat->doAsync), bstat->perfsec); + printf("%-16s%s %8.3f %s/s\n", bstat->desc, + BENCH_ASYNC_GET_NAME(bstat->doAsync), bstat->perfsec, + base2 ? "MB" : "mB"); } else { printf("%-5s %4d %-9s %s %.3f ops/sec\n",