gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: clean up code


From: gnunet
Subject: [taler-exchange] branch master updated: clean up code
Date: Wed, 27 Jan 2021 10:02:07 +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 66c950c0 clean up code
66c950c0 is described below

commit 66c950c020f3dd585f13c24476f369443957880f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jan 27 10:02:00 2021 +0100

    clean up code
---
 src/util/test_helper_eddsa.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/util/test_helper_eddsa.c b/src/util/test_helper_eddsa.c
index d20f2d83..5ac10a98 100644
--- a/src/util/test_helper_eddsa.c
+++ b/src/util/test_helper_eddsa.c
@@ -35,9 +35,16 @@
 #define NUM_REVOKES 3
 
 /**
- * How many iterations of the successful signing test should we run?
+ * How many iterations of the successful signing test should we run
+ * during the benchmark phase?
  */
-#define NUM_SIGN_TESTS 100
+#define NUM_SIGN_TESTS 3
+
+/**
+ * How many iterations of the successful signing test should we run
+ * during the benchmark phase?
+ */
+#define NUM_SIGN_PERFS 100
 
 
 /**
@@ -218,7 +225,7 @@ test_signing (struct TALER_CRYPTO_ExchangeSignHelper *esh)
     .size = htonl (sizeof (purpose)),
   };
 
-  for (unsigned int i = 0; i<2; i++)
+  for (unsigned int i = 0; i<NUM_SIGN_TESTS; i++)
   {
     struct TALER_ExchangePublicKeyP exchange_pub;
     struct TALER_ExchangeSignatureP exchange_sig;
@@ -270,7 +277,7 @@ perf_signing (struct TALER_CRYPTO_ExchangeSignHelper *esh)
   struct GNUNET_TIME_Relative duration;
 
   duration = GNUNET_TIME_UNIT_ZERO;
-  for (unsigned int j = 0; j<NUM_SIGN_TESTS;)
+  for (unsigned int j = 0; j<NUM_SIGN_PERFS; j++)
   {
     struct GNUNET_TIME_Relative delay;
     struct TALER_ExchangePublicKeyP exchange_pub;
@@ -292,7 +299,6 @@ perf_signing (struct TALER_CRYPTO_ExchangeSignHelper *esh)
     delay = GNUNET_TIME_absolute_get_duration (start);
     duration = GNUNET_TIME_relative_add (duration,
                                          delay);
-    j++;
   } /* for j */
   fprintf (stderr,
            "%u (sequential) signature operations took %s\n",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]