From: Jens Axboe Date: Tue, 12 Oct 2021 19:48:45 +0000 (-0600) Subject: t/io_uring: show IOPS in increments of 1000 IOPS if necessary X-Git-Tag: fio-3.29~68 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dc10c23ab9a7;p=fio.git t/io_uring: show IOPS in increments of 1000 IOPS if necessary It's a bit hard to read the millions of IOPS, so if we're above 100K IOPS, scale by 1000 and add a K instead. This is easier to read: IOPS=7235K, BW=3532MiB/s, IOS/call=31/31, inflight=(78 114) IOPS=7218K, BW=3524MiB/s, IOS/call=32/32, inflight=(79 105) Signed-off-by: Jens Axboe --- diff --git a/t/io_uring.c b/t/io_uring.c index cdd15986..444f8415 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -1314,7 +1314,10 @@ int main(int argc, char *argv[]) bw = iops * (bs / 1048576); else bw = iops / (1048576 / bs); - printf("IOPS=%lu, ", iops); + if (iops > 100000) + printf("IOPS=%luK, ", iops / 1000); + else + printf("IOPS=%luK, ", iops / 1000); if (!do_nop) printf("BW=%luMiB/s, ", bw); printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths);