[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -first micro benchmark
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -first micro benchmark |
Date: |
Tue, 15 Nov 2022 12:07:35 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 94a80b37 -first micro benchmark
94a80b37 is described below
commit 94a80b37d53ed7c54155a27d68a91e76c2358542
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 15 12:07:33 2022 +0100
-first micro benchmark
---
src/exchangedb/test_exchangedb_by_j.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/exchangedb/test_exchangedb_by_j.c
b/src/exchangedb/test_exchangedb_by_j.c
index da29abf0..7a768f4f 100644
--- a/src/exchangedb/test_exchangedb_by_j.c
+++ b/src/exchangedb/test_exchangedb_by_j.c
@@ -98,23 +98,23 @@ run (void *cls)
goto cleanup;
}
- for (unsigned int i = 0; i< 6;i++)
+ for (unsigned int i = 0; i< 7; i++)
{
- static unsigned int batches[]={1, 1, 2, 4, 16, 64};
+ static unsigned int batches[] = {1, 1, 0, 2, 4, 16, 64};
const char *sndr = "payto://x-taler-bank/localhost:8080/1";
struct TALER_Amount value;
unsigned int batch_size = batches[i];
struct GNUNET_TIME_Timestamp now;
struct GNUNET_TIME_Relative duration;
struct TALER_ReservePublicKeyP reserve_pub;
-
- now = GNUNET_TIME_timestamp_get();
+
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount (CURRENCY ":1.000010",
&value));
+ now = GNUNET_TIME_timestamp_get ();
plugin->start (plugin->cls,
"test_by_exchange_j");
- for (unsigned int k=0;k<batch_size;k++)
+ for (unsigned int k = 0; k<batch_size; k++)
{
RND_BLK (&reserve_pub);
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
@@ -127,14 +127,14 @@ run (void *cls)
4));
}
plugin->commit (plugin->cls);
- duration = GNUNET_TIME_absolute_get_duration(now.abs_time);
- fprintf (stderr,
+ duration = GNUNET_TIME_absolute_get_duration (now.abs_time);
+ fprintf (stdout,
"for a batchsize equal to %d it took %s\n",
batch_size,
- GNUNET_STRINGS_relative_time_to_string(duration,
- GNUNET_YES) );
+ GNUNET_STRINGS_relative_time_to_string (duration,
+ GNUNET_YES) );
}
- drop:
+drop:
GNUNET_break (GNUNET_OK ==
plugin->drop_tables (plugin->cls));
cleanup:
@@ -151,7 +151,7 @@ main (int argc,
char *config_filename;
char *testname;
struct GNUNET_CONFIGURATION_Handle *cfg;
-
+
(void) argc;
result = -1;
if (NULL == (plugin_name = strrchr (argv[0], (int) '-')))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -first micro benchmark,
gnunet <=