diff options
author | Chris Mason <clm@fb.com> | 2023-04-17 00:12:18 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2023-04-17 00:12:18 -0700 |
commit | ab22f3f8766e1bf8a3e8f481c205c8f153dd200d (patch) | |
tree | 0c21474b1e028fd671741c4e66d878ca80be572b | |
parent | d22e8e8a0c9fcd313229f5a9305436d13157844f (diff) | |
download | schbench-ab22f3f8766e1bf8a3e8f481c205c8f153dd200d.tar.gz |
schbench: consistently use stderr for metric outputv1.0
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r-- | schbench.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1283,7 +1283,7 @@ static void sleep_for_runtime(struct thread_data *message_threads_mem) "requests", runtime_delta / USEC_PER_SEC, PLIST_FOR_RPS, PLIST_50); } - fprintf(stdout, "current rps: %.2f\n", rps); + fprintf(stderr, "current rps: %.2f\n", rps); total_intervals++; } } @@ -1399,7 +1399,7 @@ int main(int ac, char **av) mb_per_sec = (loop_count * pipe_test * USEC_PER_SEC) / loop_runtime; mb_per_sec = pretty_size(mb_per_sec, &pretty); - printf("avg worker transfer: %.2f ops/sec %.2f%s/s\n", + fprintf(stderr, "avg worker transfer: %.2f ops/sec %.2f%s/s\n", loops_per_sec, mb_per_sec, pretty); } else { show_latencies(&wakeup_stats, "Wakeup Latencies", "usec", runtime, @@ -1409,7 +1409,7 @@ int main(int ac, char **av) show_latencies(&rps_stats, "RPS", "requests", runtime, PLIST_FOR_RPS, PLIST_50); if (!auto_rps) - fprintf(stdout, "average rps: %.2f\n", + fprintf(stderr, "average rps: %.2f\n", (double)(loop_count) / runtime); } |