From 14ad8205bf0e23cdc1698f65c4d307753726a6a3 Mon Sep 17 00:00:00 2001 From: guangli-dai Date: Thu, 3 Nov 2022 18:27:03 -0700 Subject: [PATCH] Update the ratio display in benchmark In bench.h, specify the ratio as the time consumption ratio and modify the display of the ratio. --- test/include/test/bench.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/include/test/bench.h b/test/include/test/bench.h index 0397c948..c2f78a71 100644 --- a/test/include/test/bench.h +++ b/test/include/test/bench.h @@ -53,7 +53,7 @@ compare_funcs(uint64_t nwarmup, uint64_t niter, const char *name_a, timer_ratio(&timer_a, &timer_b, ratio_buf, sizeof(ratio_buf)); malloc_printf("%"FMTu64" iterations, %s=%"FMTu64"us (%s ns/iter), " - "%s=%"FMTu64"us (%s ns/iter), ratio=1:%s\n", + "%s=%"FMTu64"us (%s ns/iter), time consumption ratio=%s:1\n", niter, name_a, usec_a, buf_a, name_b, usec_b, buf_b, ratio_buf); dallocx(p, 0);