Commit be77aacc authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3372 print out a summary in db-update refs[t:3372]

git-svn-id: file:///svn/toku/tokudb@29369 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8482a31d
...@@ -125,6 +125,9 @@ static void insert_and_update_all(DB_ENV *db_env, DB *db, long nrows, long max_r ...@@ -125,6 +125,9 @@ static void insert_and_update_all(DB_ENV *db_env, DB *db, long nrows, long max_r
} }
r = txn->commit(txn, 0); assert(r == 0); r = txn->commit(txn, 0); assert(r == 0);
struct timeval tnow;
r = gettimeofday(&tnow, NULL); assert(r == 0);
printf("total %.3f %.0f/s\n", tdiff(&tnow, &tstart), nrows/tdiff(&tnow, &tstart)); fflush(stdout);
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment