diff --git a/sdk-cpp/demo/text_classification_press.cpp b/sdk-cpp/demo/text_classification_press.cpp index fcd51f17300180410f53fe6742eac5a24d270f04..fff8fd6903d331bfea719e5c9e39dab1b071c61f 100644 --- a/sdk-cpp/demo/text_classification_press.cpp +++ b/sdk-cpp/demo/text_classification_press.cpp @@ -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(count) / (elapse_ms / FLAGS_concurrency)) * 1000; + qps = (static_cast(count) / (total_ms / FLAGS_concurrency)) * 1000; } LOG(INFO) << "QPS: " << qps / FLAGS_batch_size << "/s";