Use the elapsed time (instead of the per-thread time) to compute ops/sec.

Summary:
Task ID: #

Blame Rev:

Test Plan: Revert Plan:

Differential Revision: https://reviews.facebook.net/D3147
This commit is contained in:
Dhruba Borthakur 2012-05-11 11:32:37 -07:00
parent 90b2924fb2
commit 37d0dcb9b1

View File

@ -252,7 +252,8 @@ class Stats {
extra = rate;
}
AppendWithSpace(&extra, message_);
double throughput = (double)done_/seconds_;
double elapsed = (finish_ - start_) * 1e-6;
double throughput = (double)done_/elapsed;
fprintf(stdout, "%-12s : %11.3f micros/op %ld ops/sec;%s%s\n",
name.ToString().c_str(),