Commit c74c4065 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Fix #2664. (cachetable-scan should be quiet). close[t:2664]

git-svn-id: file:///svn/toku/tokudb@20713 c7de825b-a66e-492c-adef-691d508d4ae1
parent 10d5d03f
...@@ -69,6 +69,7 @@ static void writeit (void) { ...@@ -69,6 +69,7 @@ static void writeit (void) {
} }
gettimeofday(&end, 0); gettimeofday(&end, 0);
double diff = toku_tdiff(&end, &start); double diff = toku_tdiff(&end, &start);
if (verbose)
printf("writeit %d blocks of size %d in %6.2fs at %6.2fMB/s\n", N, BLOCKSIZE, diff, (N/diff)*(BLOCKSIZE*1e-6)); printf("writeit %d blocks of size %d in %6.2fs at %6.2fMB/s\n", N, BLOCKSIZE, diff, (N/diff)*(BLOCKSIZE*1e-6));
} }
...@@ -94,6 +95,7 @@ static void readit (void) { ...@@ -94,6 +95,7 @@ static void readit (void) {
double diff = toku_tdiff(&end, &start); double diff = toku_tdiff(&end, &start);
double udiff = toku_tdiff(&end_usertime, &start_usertime); double udiff = toku_tdiff(&end_usertime, &start_usertime);
double sdiff = toku_tdiff(&end_systime, &start_systime); double sdiff = toku_tdiff(&end_systime, &start_systime);
if (verbose)
printf("readit %d blocks of size %d in %6.2fs at %6.2fMB/s user=%6.2fs sys=%6.2fs\n", printf("readit %d blocks of size %d in %6.2fs at %6.2fMB/s user=%6.2fs sys=%6.2fs\n",
N, BLOCKSIZE, diff, (N/diff)*(BLOCKSIZE*1e-6), udiff, sdiff); N, BLOCKSIZE, diff, (N/diff)*(BLOCKSIZE*1e-6), udiff, sdiff);
} }
......
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