summaryrefslogtreecommitdiff
path: root/src/mintdb/perf_taler_mintdb.c
diff options
context:
space:
mode:
authorFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-08-10 18:12:27 +0200
committerFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-08-10 18:12:27 +0200
commit8791ce6a04e0313005c6e84469bd3fc63e0bb460 (patch)
tree66761c776825dbd50e871d803ddb593ff2f520b3 /src/mintdb/perf_taler_mintdb.c
parentd6c1340bcdfef8228a7802bf046f4f8babf44f5e (diff)
downloadexchange-8791ce6a04e0313005c6e84469bd3fc63e0bb460.tar.gz
exchange-8791ce6a04e0313005c6e84469bd3fc63e0bb460.tar.bz2
exchange-8791ce6a04e0313005c6e84469bd3fc63e0bb460.zip
added new benchmarks
Diffstat (limited to 'src/mintdb/perf_taler_mintdb.c')
-rw-r--r--src/mintdb/perf_taler_mintdb.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/mintdb/perf_taler_mintdb.c b/src/mintdb/perf_taler_mintdb.c
index 11ae6f526..80cb3069e 100644
--- a/src/mintdb/perf_taler_mintdb.c
+++ b/src/mintdb/perf_taler_mintdb.c
@@ -25,8 +25,8 @@
#define NB_DENOMINATION_INIT 15
#define NB_DENOMINATION_SAVE 15
-#define BIGGER 10
-#define BIG 10
+#define BIGGER 100000
+#define BIG 10000
#define NB_RESERVE_INIT BIGGER
#define NB_RESERVE_SAVE BIG
@@ -37,6 +37,9 @@
#define NB_WITHDRAW_INIT BIGGER
#define NB_WITHDRAW_SAVE BIG
+#define NB_REFRESH_INIT BIGGER
+#define NB_REFRESH_SAVE BIG
+
/**
* Runs the performances tests for the mint database
* and logs the results using Gauger
@@ -118,8 +121,21 @@ main (int argc, char ** argv)
NB_DEPOSIT_SAVE),
PERF_TALER_MINTDB_INIT_CMD_END_LOOP ("",
"04 - deposit init loop"),
- PERF_TALER_MINTDB_INIT_CMD_DEBUG ("End of initialization"),
// End of deposit initialization
+ // Session initialization
+ PERF_TALER_MINTDB_INIT_CMD_LOOP ("05 - refresh session init loop",
+ NB_REFRESH_INIT),
+ PERF_TALER_MINTDB_INIT_CMD_START_TRANSACTION (""),
+ PERF_TALER_MINTDB_INIT_CMD_CREATE_REFRESH_SESSION ("05 - refresh session"),
+ PERF_TALER_MINTDB_INIT_CMD_SAVE_ARRAY ("05 - session array",
+ "05 - refresh session init loop",
+ "05 - refresh session",
+ NB_RESERVE_SAVE),
+ PERF_TALER_MINTDB_INIT_CMD_COMMIT_TRANSACTION (""),
+ PERF_TALER_MINTDB_INIT_CMD_END_LOOP ("05 - end",
+ "05 - refresh session init loop"),
+
+ PERF_TALER_MINTDB_INIT_CMD_DEBUG ("End of initialization"),
PERF_TALER_MINTDB_INIT_CMD_DEBUG ("Start of performances measuring"),
PERF_TALER_MINTDB_INIT_CMD_GET_TIME ("05 - start"),