mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
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
This commit is contained in:
parent
51d865dceb
commit
156d6520e8
1 changed files with 3 additions and 3 deletions
|
@ -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[]) {
|
||||||
} 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[]) {
|
||||||
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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue