aboutsummaryrefslogtreecommitdiff
path: root/src/mintdb/perf_taler_mintdb.c
diff options
context:
space:
mode:
authorFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-06-19 10:55:13 +0200
committerFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-06-19 10:55:13 +0200
commitd9dbc4438947663b146e8f07037ab86db2627b63 (patch)
tree7682376a4689b29af5ec7ff3b37418a964075f08 /src/mintdb/perf_taler_mintdb.c
parentaa33f8cae59a8d52d113b41e6331e191b5e9937a (diff)
downloadexchange-d9dbc4438947663b146e8f07037ab86db2627b63.tar.xz
functional interpreter
Diffstat (limited to 'src/mintdb/perf_taler_mintdb.c')
-rw-r--r--src/mintdb/perf_taler_mintdb.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/mintdb/perf_taler_mintdb.c b/src/mintdb/perf_taler_mintdb.c
index 040a473f5..0b1e48075 100644
--- a/src/mintdb/perf_taler_mintdb.c
+++ b/src/mintdb/perf_taler_mintdb.c
@@ -33,13 +33,27 @@ main (int argc, char ** argv)
struct GNUNET_CONFIGURATION_Handle *config;
struct PERF_TALER_MINTDB_Cmd test[] =
{
- PERF_TALER_MINTDB_INIT_CMD_LOOP ("loop_db_init_deposit",10),
- PERF_TALER_MINTDB_INIT_CMD_START_TRANSACTION ("start_transaction_init"),
- PERF_TALER_MINTDB_INIT_CMD_INSERT_DEPOSIT ("init_deposit_insert"),
- PERF_TALER_MINTDB_INIT_CMD_COMMIT_TRANSACTION ("commit_transaction_init"),
- PERF_TALER_MINTDB_INIT_CMD_SAVE_ARRAY ("array_depo", "loop_db_init_deposit", "init_deposit_insert", 10, PERF_TALER_MINTDB_DEPOSIT),
+ PERF_TALER_MINTDB_INIT_CMD_LOOP ("loop_db_init_deposit",10000),
+ PERF_TALER_MINTDB_INIT_CMD_START_TRANSACTION ("start_transaction_init"),
+ PERF_TALER_MINTDB_INIT_CMD_INSERT_DEPOSIT ("init_deposit_insert"),
+ PERF_TALER_MINTDB_INIT_CMD_COMMIT_TRANSACTION ("commit_transaction_init"),
+ PERF_TALER_MINTDB_INIT_CMD_SAVE_ARRAY ("array_depo",
+ "loop_db_init_deposit",
+ "init_deposit_insert",
+ 100,
+ PERF_TALER_MINTDB_DEPOSIT),
PERF_TALER_MINTDB_INIT_CMD_END_LOOP ("endloop_init_deposit",
"loop_db_init_deposit"),
+ PERF_TALER_MINTDB_INIT_CMD_DEBUG("Fin loop 1"),
+ PERF_TALER_MINTDB_INIT_CMD_LOOP ("loop_deposit_get",100),
+ PERF_TALER_MINTDB_INIT_CMD_START_TRANSACTION ("start_transaction_get"),
+ PERF_TALER_MINTDB_INIT_CMD_LOAD_ARRAY("load deposit",
+ "loop_deposit_get",
+ "array_depo"),
+ PERF_TALER_MINTDB_INIT_CMD_GET_DEPOSIT("get_deposit",
+ "load_deposit"),
+ PERF_TALER_MINTDB_INIT_CMD_COMMIT_TRANSACTION ("commit_transaction_init"),
+ PERF_TALER_MINTDB_INIT_CMD_END_LOOP("stop2", "loop_deposit_get"),
PERF_TALER_MINTDB_INIT_CMD_END("end")
};
// Plugin init