Commit 156d6520 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Make benchmark-test a little quieter by default, and make -v make it a little...

Make benchmark-test a little quieter by default, and make -v make it a little louder again.  Addresses #13.

git-svn-id: file:///svn/tokudb@1800 c7de825b-a66e-492c-adef-691d508d4ae1
parent 51d865dc
...@@ -106,7 +106,7 @@ static void biginsert (long long n_elements, struct timeval *starttime) { ...@@ -106,7 +106,7 @@ static void biginsert (long long n_elements, struct timeval *starttime) {
} }
static void usage() { static void usage() {
printf("benchmark-test [-v] [--nodesize NODESIZE] [--keysize KEYSIZE] [--valsize VALSIZE] [--verify] [TOTALITEMS]\n"); printf("benchmark-test [-v] [--nodesize NODESIZE] [--keysize KEYSIZE] [--valsize VALSIZE] [--verify] [ITERATIONS]\n");
} }
int main (int argc, char *argv[]) { int main (int argc, char *argv[]) {
...@@ -134,7 +134,7 @@ int main (int argc, char *argv[]) { ...@@ -134,7 +134,7 @@ int main (int argc, char *argv[]) {
} else if (strcmp(arg, "--verify")==0) { } else if (strcmp(arg, "--verify")==0) {
do_verify = 1; do_verify = 1;
} else if (strcmp(arg, "-v")==0) { } else if (strcmp(arg, "-v")==0) {
verbose = 1; verbose++;
} else if (strcmp(arg, "-q")==0) { } else if (strcmp(arg, "-q")==0) {
verbose = 0; verbose = 0;
} else { } else {
...@@ -172,7 +172,7 @@ int main (int argc, char *argv[]) { ...@@ -172,7 +172,7 @@ int main (int argc, char *argv[]) {
printf("Shutdown %9.6fs\n", tdiff(&t3, &t2)); printf("Shutdown %9.6fs\n", tdiff(&t3, &t2));
printf("Total time %9.6fs for %lld insertions = %8.0f/s\n", tdiff(&t3, &t1), 2*total_n_items, 2*total_n_items/tdiff(&t3, &t1)); printf("Total time %9.6fs for %lld insertions = %8.0f/s\n", tdiff(&t3, &t1), 2*total_n_items, 2*total_n_items/tdiff(&t3, &t1));
} }
if (verbose) { if (verbose>1) {
toku_malloc_report(); toku_malloc_report();
} }
toku_malloc_cleanup(); toku_malloc_cleanup();
......
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