summaryrefslogtreecommitdiff
path: root/ndb/test
diff options
context:
space:
mode:
authorjoreland@mysql.com <>2004-11-19 11:37:16 +0100
committerjoreland@mysql.com <>2004-11-19 11:37:16 +0100
commitb254e69a385b583096ddc19b7b8d067221d1036e (patch)
treeb642d06053676b047dfe908c847b3cc02046f2e4 /ndb/test
parent64382cdcf31f020969d69e20d0ed10283e33904a (diff)
downloadmariadb-git-b254e69a385b583096ddc19b7b8d067221d1036e.tar.gz
wl2077 - scan optimizations
(recommit in clean clone)
Diffstat (limited to 'ndb/test')
-rw-r--r--ndb/test/ndbapi/testReadPerf.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/ndb/test/ndbapi/testReadPerf.cpp b/ndb/test/ndbapi/testReadPerf.cpp
index 8d0d78cbe8c..f8ecc6192dc 100644
--- a/ndb/test/ndbapi/testReadPerf.cpp
+++ b/ndb/test/ndbapi/testReadPerf.cpp
@@ -390,8 +390,15 @@ run_read(){
void
print_result(){
+ int tmp = 1;
+ tmp *= g_paramters[P_RANGE].value;
+ tmp *= g_paramters[P_LOOPS].value;
+
+ int t, t2;
for(int i = 0; i<P_OP_TYPES; i++){
- g_err.println("%s avg: %u us/row", g_ops[i],
- (1000*g_times[i])/(g_paramters[P_RANGE].value*g_paramters[P_LOOPS].value));
+ g_err << g_ops[i] << " avg: "
+ << (int)((1000*g_times[i])/tmp)
+ << " us/row ("
+ << (1000 * tmp)/g_times[i] << " rows / sec)" << endl;
}
}