summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Summermatter <elias.summermatter@seccom.ch>2021-03-31 11:18:43 +0200
committerElias Summermatter <elias.summermatter@seccom.ch>2021-03-31 11:18:43 +0200
commit43d03abda0ffe1f39bfe4f6470ff57dc8f9bb1f3 (patch)
tree51a5396ef97d85c4a1fc19522d072afc26c7fb41
parent054ead6a4042210f4325a0b57c5dc55cb5111734 (diff)
Changed perfomance setu file
-rw-r--r--src/setu/perf_setu_api.c36
-rw-r--r--src/util/mq.c2
2 files changed, 24 insertions, 14 deletions
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 710e75381..4069056fc 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -50,6 +50,7 @@ static int ret;
static struct GNUNET_SCHEDULER_Task *tt;
+
static void
result_cb_set1 (void *cls,
const struct GNUNET_SETU_Element *element,
@@ -394,25 +395,34 @@ run (void *cls,
"Running real set-reconciliation\n");
//init_set1 ();
// limit ~23800 element total
- initRandomSets(19500,20000,20000,32);
+ initRandomSets(95,100,100,32);
}
+static void execute_perf()
+{
+ for( int repeat_ctr = 0; repeat_ctr<100; repeat_ctr++ ) {
+
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Executing perf round %d\n", repeat_ctr);
+
+ GNUNET_TESTING_service_run ("perf_setu_api",
+ "arm",
+ "test_setu.conf",
+ &run,
+ NULL);
+ }
+ return 0;
+}
+
+
int
main (int argc, char **argv)
{
- GNUNET_log_setup ("test_setu_api",
+ GNUNET_log_setup ("perf_setu_api",
"WARNING",
NULL);
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Launching peer\n");
- if (0 !=
- GNUNET_TESTING_peer_run ("test_setu_api",
- "test_setu.conf",
- &run,
- NULL))
- {
- return 1;
- }
- return ret;
+
+ execute_perf();
+ return 0;
}
diff --git a/src/util/mq.c b/src/util/mq.c
index 2342b2c5c..9b59cd338 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -363,7 +363,7 @@ GNUNET_MQ_send (struct GNUNET_MQ_Handle *mq,
GNUNET_assert (NULL == ev->parent_queue);
mq->queue_length++;
- if (mq->queue_length >= 10000)
+ if (mq->queue_length >= 10000000)
{
/* This would seem like a bug... */
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,