[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix benchmark logic
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix benchmark logic |
Date: |
Tue, 15 Nov 2022 12:15:19 +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 8e0f06c8 fix benchmark logic
8e0f06c8 is described below
commit 8e0f06c86bdc6880bc24334e65b7920c8310ecdd
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 15 12:15:17 2022 +0100
fix benchmark logic
---
src/exchangedb/test_exchangedb_by_j.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/exchangedb/test_exchangedb_by_j.c
b/src/exchangedb/test_exchangedb_by_j.c
index 7a768f4f..b81d82d6 100644
--- a/src/exchangedb/test_exchangedb_by_j.c
+++ b/src/exchangedb/test_exchangedb_by_j.c
@@ -104,14 +104,19 @@ run (void *cls)
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_Absolute now;
+ struct GNUNET_TIME_Timestamp ts;
struct GNUNET_TIME_Relative duration;
struct TALER_ReservePublicKeyP reserve_pub;
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount (CURRENCY ":1.000010",
&value));
- now = GNUNET_TIME_timestamp_get ();
+ now = GNUNET_TIME_absolute_get ();
+ ts = GNUNET_TIME_timestamp_get ();
+ fprintf (stdout,
+ "Now: %llu\n",
+ now.abs_value_us);
plugin->start (plugin->cls,
"test_by_exchange_j");
for (unsigned int k = 0; k<batch_size; k++)
@@ -121,13 +126,13 @@ run (void *cls)
plugin->reserves_in_insert (plugin->cls,
&reserve_pub,
&value,
- now,
+ ts,
sndr,
"section",
4));
}
plugin->commit (plugin->cls);
- duration = GNUNET_TIME_absolute_get_duration (now.abs_time);
+ duration = GNUNET_TIME_absolute_get_duration (now);
fprintf (stdout,
"for a batchsize equal to %d it took %s\n",
batch_size,
--
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: fix benchmark logic,
gnunet <=