From c3196eac2be29a7b90304b4f9f377c03d9e6d6d8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 30 Nov 2024 13:01:01 -0500 Subject: tests: better reporting of timing overhead --- src/testing/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/testing/util.c b/src/testing/util.c index 79b48337..6aabe35f 100644 --- a/src/testing/util.c +++ b/src/testing/util.c @@ -538,8 +538,8 @@ nuts_tran_perf(const char *scheme) "Did %u roundtrips in %0.2f seconds (%0.3f msg/sec)", num, delta / 1000.0, (float) num / (delta / 1000.0)); nng_log_notice(scheme, "RTT %0.3f ms", (float) delta / (float) num); - nng_log_notice( - scheme, "Timing overhead %0.3f ms", (end - now) / (float) num); + nng_log_notice(scheme, "Timing overhead %0.3f ms, %0.3f us/msg", + (float) (end - now), (end - now) * 1000.0 / (float) num); NUTS_CLOSE(s1); NUTS_CLOSE(s2); } -- cgit v1.2.3-70-g09d2