From 80b85e55858792d96c5e320dee84844dc4ad6138 Mon Sep 17 00:00:00 2001 From: Fournier Nicolas Date: Mon, 20 Jul 2015 13:43:55 +0200 Subject: [PATCH] Database smaller for testing --- src/mintdb/perf_taler_mintdb.c | 14 +++++++------- src/mintdb/perf_taler_mintdb_interpreter.c | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/mintdb/perf_taler_mintdb.c b/src/mintdb/perf_taler_mintdb.c index 4a4e84d11..3fb5975c2 100644 --- a/src/mintdb/perf_taler_mintdb.c +++ b/src/mintdb/perf_taler_mintdb.c @@ -25,14 +25,14 @@ #define NB_DENOMINATION_INIT 15 #define NB_DENOMINATION_SAVE 15 -#define NB_RESERVE_INIT 100000 -#define NB_RESERVE_SAVE 10000 +#define NB_RESERVE_INIT 10000 +#define NB_RESERVE_SAVE 1000 -#define NB_DEPOSIT_INIT 100000 -#define NB_DEPOSIT_SAVE 10000 +#define NB_DEPOSIT_INIT 10000 +#define NB_DEPOSIT_SAVE 1000 -#define NB_WITHDRAW_INIT 100000 -#define NB_WITHDRAW_SAVE 10000 +#define NB_WITHDRAW_INIT 10000 +#define NB_WITHDRAW_SAVE 1000 /** * Runs the performances tests for the mint database @@ -193,7 +193,7 @@ main (int argc, char ** argv) NB_RESERVE_SAVE), PERF_TALER_MINTDB_INIT_CMD_LOAD_ARRAY ("09 - reserve", "09 - withdraw insert measure", - "03 - save coin"), + "02 - save reserve"), PERF_TALER_MINTDB_INIT_CMD_LOAD_ARRAY ("09 - denomination", "09 - withdraw insert measure", "01 - save denomination"), diff --git a/src/mintdb/perf_taler_mintdb_interpreter.c b/src/mintdb/perf_taler_mintdb_interpreter.c index 45a3002a5..30403a628 100644 --- a/src/mintdb/perf_taler_mintdb_interpreter.c +++ b/src/mintdb/perf_taler_mintdb_interpreter.c @@ -470,7 +470,6 @@ interpret (struct PERF_TALER_MINTDB_interpreter_state *state) elapsed = GNUNET_TIME_absolute_get_difference (start, stop); ips = (1.0 * state->cmd[state->i].details.gauger.divide) / (elapsed.rel_value_us/1000000.0); - printf ("gauger data:%lu - %f\n", elapsed.rel_value_us, ips); GAUGER ("MINTDB", state->cmd[state->i].details.gauger.description, ips,