Skip to content

Commit 3a2bd9b

Browse files
committed
add qps
1 parent 967758d commit 3a2bd9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coro_rpc/benchmark/bench.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ async_simple::coro::Lazy<std::error_code> request(const bench_config& conf) {
101101
auto end = std::chrono::system_clock::now();
102102
auto dur = (end - start) / std::chrono::milliseconds(1);
103103
double val = (8.0 * c * 1000) / (1000'000'000ll * dur);
104-
std::cout << "Throughput:" << val << " Gb/s\n";
104+
std::cout << "qps " << c / conf.data_len << ", Throughput:" << val
105+
<< " Gb/s\n";
105106
}
106107
}
107108

0 commit comments

Comments
 (0)