提交 4ddadd99 编写于 作者: W wangguibao

Fix press test case

Change-Id: Ib4390db59f7a9f34f1bd4095be5b44e9296c3474
上级 7feca4f5
......@@ -341,10 +341,11 @@ int main(int argc, char **argv) {
LOG(INFO) << "Total requests: " << round_times.size();
LOG(INFO) << "Max concurrency: " << FLAGS_concurrency;
LOG(INFO) << "Elapse ms (wall-time): " << elapse_ms;
LOG(INFO) << "Total ms (absolute time): " << total_ms;
double qps = 0.0;
if (elapse_ms != 0) {
qps = (static_cast<double>(count) / (elapse_ms / FLAGS_concurrency)) * 1000;
qps = (static_cast<double>(count) / (total_ms / FLAGS_concurrency)) * 1000;
}
LOG(INFO) << "QPS: " << qps / FLAGS_batch_size << "/s";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册