t/io_uring: don't print BW numbers for do_nop
authorJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 21:17:44 +0000 (15:17 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 21:17:44 +0000 (15:17 -0600)
They don't mean anything for nops, we're just interested in IOPS here.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index af1b8fa8ace0ecf909e59a8d8db20cfefa4d4417..d563638019ad87edff09d3d7944a553bd145add8 100644 (file)
@@ -751,8 +751,10 @@ int main(int argc, char *argv[])
                        bw = iops * (bs / 1048576);
                else
                        bw = iops / (1048576 / bs);
                        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;
                done = this_done;
                calls = this_call;
                reap = this_reap;