fprintf(stderr," -x do transactions (one transaction per iteration) (default: no transactions at all)\n");
fprintf(stderr," --keysize KEYSIZE sets the key size (default 8)\n");
fprintf(stderr," --valsize VALSIZE sets the value size (default 8)\n");
fprintf(stderr," --cachesize CACHESIZE set the database cache size\n");
fprintf(stderr," --pagesize PAGESIZE sets the database page size\n");
fprintf(stderr," n_iterations how many iterations (default %lld iterations of %d items per iteration)\n",default_n_items/ITEMS_TO_INSERT_PER_ITERATION,ITEMS_TO_INSERT_PER_ITERATION);
fprintf(stderr," --noserial causes the serial insertions to be skipped\n");
fprintf(stderr," --xcount N how many insertions per transaction (default=%d)\n",DEFAULT_ITEMS_PER_TRANSACTION);
fprintf(stderr," --periter N how many insertions per iteration (default=%d)\n",DEFAULT_ITEMS_TO_INSERT_PER_ITERATION);
fprintf(stderr," n_iterations how many iterations (default %lld)\n",default_n_items/DEFAULT_ITEMS_TO_INSERT_PER_ITERATION);
return1;
}
...
...
@@ -236,6 +242,20 @@ int main (int argc, const char *argv[]) {
do_transactions=1;
continue;
}
if(strcmp(arg,"--noserial")==0){
noserial=1;
continue;
}
if(strcmp(arg,"--xcount")==0){
if(i+1>=argc)returnprint_usage(argv[0]);
items_per_transaction=strtoll(argv[++i],0,10);
continue;
}
if(strcmp(arg,"--periter")==0){
if(i+1>=argc)returnprint_usage(argv[0]);
items_per_iteration=strtoll(argv[++i],0,10);
continue;
}
if(strcmp(arg,"--cachesize")==0){
if(i+1>=argc)returnprint_usage(argv[0]);
cachesize=strtoll(argv[++i],0,10);
...
...
@@ -271,9 +291,10 @@ int main (int argc, const char *argv[]) {