From 6c5d3a1c08bda1bbf22187c7b80573400e1c1053 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 24 Sep 2021 15:17:44 -0600 Subject: [PATCH 1/1] t/io_uring: don't print BW numbers for do_nop They don't mean anything for nops, we're just interested in IOPS here. Signed-off-by: Jens Axboe --- t/io_uring.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/io_uring.c b/t/io_uring.c index af1b8fa8..d5636380 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -751,8 +751,10 @@ int main(int argc, char *argv[]) bw = iops * (bs / 1048576); else bw = iops / (1048576 / bs); - printf("IOPS=%lu, BW=%luMiB/s, IOS/call=%ld/%ld, inflight=(%s)\n", - iops, bw, rpc, ipc, fdepths); + printf("IOPS=%lu, ", iops); + if (!do_nop) + printf("BW=%luMiB/s, ", bw); + printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths); done = this_done; calls = this_call; reap = this_reap; -- 2.25.1