diff options
author | Joseph <Joseph.xu@efrei.net> | 2022-11-21 10:37:50 -0500 |
---|---|---|
committer | Joseph <Joseph.xu@efrei.net> | 2022-11-21 10:40:10 -0500 |
commit | eba2a5d90c1dbc2e5121e404ac4154dc70d9cace (patch) | |
tree | a13f87e18c4d8283268806b76babfe29bbdd54de /src/exchangedb/perf_exchangedb_reserves_in_insert.c | |
parent | dbfd4e252a1bdbc7e4c8c97fd4780a13369b872c (diff) | |
download | exchange-eba2a5d90c1dbc2e5121e404ac4154dc70d9cace.tar.xz |
new batch insertion code
Diffstat (limited to 'src/exchangedb/perf_exchangedb_reserves_in_insert.c')
-rw-r--r-- | src/exchangedb/perf_exchangedb_reserves_in_insert.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchangedb/perf_exchangedb_reserves_in_insert.c b/src/exchangedb/perf_exchangedb_reserves_in_insert.c index 6c91b6bca..9a0ec0944 100644 --- a/src/exchangedb/perf_exchangedb_reserves_in_insert.c +++ b/src/exchangedb/perf_exchangedb_reserves_in_insert.c @@ -114,6 +114,8 @@ run (void *cls) &value)); now = GNUNET_TIME_absolute_get (); ts = GNUNET_TIME_timestamp_get (); + for (unsigned int r=0;r<10;r++) + { plugin->start (plugin->cls, "test_by_exchange_j"); for (unsigned int k = 0; k<batch_size; k++) @@ -129,6 +131,7 @@ run (void *cls) 4)); } plugin->commit (plugin->cls); + } duration = GNUNET_TIME_absolute_get_duration (now); fprintf (stdout, "for a batchsize equal to %d it took %s\n", @@ -136,6 +139,7 @@ run (void *cls) GNUNET_STRINGS_relative_time_to_string (duration, GNUNET_NO) ); } + result = 0; drop: GNUNET_break (GNUNET_OK == plugin->drop_tables (plugin->cls)); |