diff options
author | Fournier Nicolas <nicolas.fournier@ensta-paristech.fr> | 2015-08-03 10:26:52 +0200 |
---|---|---|
committer | Fournier Nicolas <nicolas.fournier@ensta-paristech.fr> | 2015-08-03 10:26:52 +0200 |
commit | f0a1941f3957a53100035285b6c36d10e20c2174 (patch) | |
tree | 5bcc3ea3f03a543153874324ede68dac625dadea /src/mintdb/perf_taler_mintdb.c | |
parent | 8cd6fc9b98d21e87300727e54efc5e958616244a (diff) | |
download | exchange-f0a1941f3957a53100035285b6c36d10e20c2174.tar.gz exchange-f0a1941f3957a53100035285b6c36d10e20c2174.tar.bz2 exchange-f0a1941f3957a53100035285b6c36d10e20c2174.zip |
Testing for the /deposit api call
Diffstat (limited to 'src/mintdb/perf_taler_mintdb.c')
-rw-r--r-- | src/mintdb/perf_taler_mintdb.c | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/src/mintdb/perf_taler_mintdb.c b/src/mintdb/perf_taler_mintdb.c index cd6d25246..2ef9bda31 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 10000 -#define NB_RESERVE_SAVE 1000 +#define NB_RESERVE_INIT 100 +#define NB_RESERVE_SAVE 10 -#define NB_DEPOSIT_INIT 10000 -#define NB_DEPOSIT_SAVE 1000 +#define NB_DEPOSIT_INIT 100 +#define NB_DEPOSIT_SAVE 10 -#define NB_WITHDRAW_INIT 10000 -#define NB_WITHDRAW_SAVE 1000 +#define NB_WITHDRAW_INIT 100 +#define NB_WITHDRAW_SAVE 10 /** * Runs the performances tests for the mint database @@ -255,6 +255,25 @@ main (int argc, char ** argv) "item/sec", NB_WITHDRAW_SAVE), PERF_TALER_MINTDB_INIT_CMD_DEBUG ("End of /withdraw/sign"), + + PERF_TALER_MINTDB_INIT_CMD_GET_TIME ("12 - start"), + PERF_TALER_MINTDB_INIT_CMD_LOOP ("12 - /deposit", + NB_DEPOSIT_SAVE), + PERF_TALER_MINTDB_INIT_CMD_LOAD_ARRAY ("12 - coin", + "12 - /deposit", + "03 - save coin"), + PERF_TALER_MINTDB_INIT_CMD_DEPOSIT ("12 - deposit", + "12 - coin"), + PERF_TALER_MINTDB_INIT_CMD_END_LOOP ("", + "12 - /deposit"), + PERF_TALER_MINTDB_INIT_CMD_GET_TIME ("12 - stop"), + PERF_TALER_MINTDB_INIT_CMD_GAUGER ("", + "12 - start", + "12 - stop", + "POSTGRES", + "Number of /deposit per second", + "item/sec", + NB_DEPOSIT_SAVE), PERF_TALER_MINTDB_INIT_CMD_END (""), }; |