aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-30 13:01:01 -0500
committerGarrett D'Amore <garrett@damore.org>2024-11-30 13:01:01 -0500
commitc3196eac2be29a7b90304b4f9f377c03d9e6d6d8 (patch)
treeb70aee1cb83f29fe70b33066d618a22148c05089
parent4f5a5fb842bcb6e6917d1d37b3530a7020222082 (diff)
downloadnng-c3196eac2be29a7b90304b4f9f377c03d9e6d6d8.tar.gz
nng-c3196eac2be29a7b90304b4f9f377c03d9e6d6d8.tar.bz2
nng-c3196eac2be29a7b90304b4f9f377c03d9e6d6d8.zip
tests: better reporting of timing overhead
-rw-r--r--src/testing/util.c4
1 files changed, 2 insertions, 2 deletions
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);
}