From cde31281d1c9068a32d6aaf235d22a2e29475247 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 4 Aug 2017 23:30:30 +0200 Subject: [PATCH] Bench: don't tie the printed result to the number of iterations --- test/default/cmptest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/cmptest.h b/test/default/cmptest.h index 6df1c133..d1b9bafc 100644 --- a/test/default/cmptest.h +++ b/test/default/cmptest.h @@ -69,7 +69,7 @@ int main(void) } } ts_end = now(); - printf("%llu\n", ts_end - ts_start); + printf("%llu\n", 1000000ULL * (ts_end - ts_start) / ITERATIONS); return 0; }