mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mysql.com:/home/jonas/src/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1-fix ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Auto merged ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Auto merged ndb/src/ndbapi/NdbConnection.cpp: Auto merged ndb/src/ndbapi/NdbScanOperation.cpp: Auto merged ndb/test/ndbapi/testReadPerf.cpp: Auto merged ndb/test/ndbapi/testScanPerf.cpp: Auto merged
This commit is contained in:
@ -391,8 +391,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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user