From 6e3d1bdc91254a5bd57d58e5280e20813211157b Mon Sep 17 00:00:00 2001 From: Joseph Date: Fri, 25 Nov 2022 06:09:20 -0500 Subject: some modifications for batch test --- src/exchangedb/test_exchangedb_by_j.c | 48 ++++------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) (limited to 'src/exchangedb/test_exchangedb_by_j.c') diff --git a/src/exchangedb/test_exchangedb_by_j.c b/src/exchangedb/test_exchangedb_by_j.c index 0f252a09..834373b5 100644 --- a/src/exchangedb/test_exchangedb_by_j.c +++ b/src/exchangedb/test_exchangedb_by_j.c @@ -91,9 +91,9 @@ run (void *cls) result = 77; goto cleanup; } -<<<<<<< HEAD + for (unsigned int i = 0; i< 7; i++) -======= + if (GNUNET_OK != plugin->setup_partitions (plugin->cls, num_partitions)) @@ -104,7 +104,7 @@ run (void *cls) } for (unsigned int i = 0; i< 8; i++) ->>>>>>> 26922c6d (batch modifications) + { static unsigned int batches[] = {1, 1,0, 2, 4, 16, 64, 256}; const char *sndr = "payto://x-taler-bank/localhost:8080/1"; @@ -123,15 +123,8 @@ run (void *cls) ts = GNUNET_TIME_timestamp_get (); for (unsigned int r = 0; r<10; r++) { -<<<<<<< HEAD - plugin->start_read_committed (plugin->cls, - "test_by_j"); - -======= - plugin->start (plugin->cls, - "test_by_exchange_j"); ->>>>>>> 26922c6d (batch modifications) - for (unsigned int k = 0; kbatch_reserves_in_insert (plugin->cls, - reserves, - batch_size, - results)); - - plugin->commit (plugin->cls); -======= } FAILIF (batch_size != plugin->batch_reserves_in_insert (plugin->cls, reserves, batch_size, results)); - /*plugin->commit (plugin->cls);*/ ->>>>>>> 26922c6d (batch modifications) } - /* - for (unsigned int s=0;s<10;s++) - { - for (unsigned int k = 0; kbatch_reserves_in_insert (plugin->cls, - reserves2, - batch_size, - results)); - }*/ duration = GNUNET_TIME_absolute_get_duration (now); fprintf (stdout, -- cgit v1.2.3