[Assorted-commits] SF.net SVN: assorted:[1172] ydb/trunk/src/serperf.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-02-06 06:16:50
|
Revision: 1172 http://assorted.svn.sourceforge.net/assorted/?rev=1172&view=rev Author: yangzhang Date: 2009-02-06 06:16:46 +0000 (Fri, 06 Feb 2009) Log Message: ----------- oops...there are 1000ms in a s, duh Modified Paths: -------------- ydb/trunk/src/serperf.cc Modified: ydb/trunk/src/serperf.cc =================================================================== --- ydb/trunk/src/serperf.cc 2009-02-06 05:00:42 UTC (rev 1171) +++ ydb/trunk/src/serperf.cc 2009-02-06 06:16:46 UTC (rev 1172) @@ -30,7 +30,7 @@ batch.SerializeToOstream(&ss); } long long time = current_time_millis() - start; - double tps = 100 * static_cast<double>(count * batchsize) / time; + double tps = 1000 * static_cast<double>(count * batchsize) / time; cout << "protobuf: " << time << " ms, " << tps << " tps" << endl; } @@ -51,7 +51,7 @@ } } long long time = current_time_millis() - start; - double tps = 100 * static_cast<double>(count * batchsize) / time; + double tps = 1000 * static_cast<double>(count * batchsize) / time; cout << "boost: " << time << " ms, " << tps << " tps" << endl; } @@ -72,7 +72,7 @@ } } long long time = current_time_millis() - start; - double tps = 100 * static_cast<double>(count * batchsize) / time; + double tps = 1000 * static_cast<double>(count * batchsize) / time; cout << "streambuf.sputn: " << time << " ms, " << tps << " tps" << endl; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |