diff options
author | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-03-31 11:18:43 +0200 |
---|---|---|
committer | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-03-31 11:18:43 +0200 |
commit | 43d03abda0ffe1f39bfe4f6470ff57dc8f9bb1f3 (patch) | |
tree | 51a5396ef97d85c4a1fc19522d072afc26c7fb41 /src | |
parent | 054ead6a4042210f4325a0b57c5dc55cb5111734 (diff) | |
download | gnunet-43d03abda0ffe1f39bfe4f6470ff57dc8f9bb1f3.tar.gz gnunet-43d03abda0ffe1f39bfe4f6470ff57dc8f9bb1f3.zip |
Changed perfomance setu file
Diffstat (limited to 'src')
-rw-r--r-- | src/setu/perf_setu_api.c | 36 | ||||
-rw-r--r-- | src/util/mq.c | 2 |
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; | |||
50 | static struct GNUNET_SCHEDULER_Task *tt; | 50 | static struct GNUNET_SCHEDULER_Task *tt; |
51 | 51 | ||
52 | 52 | ||
53 | |||
53 | static void | 54 | static void |
54 | result_cb_set1 (void *cls, | 55 | result_cb_set1 (void *cls, |
55 | const struct GNUNET_SETU_Element *element, | 56 | const struct GNUNET_SETU_Element *element, |
@@ -394,25 +395,34 @@ run (void *cls, | |||
394 | "Running real set-reconciliation\n"); | 395 | "Running real set-reconciliation\n"); |
395 | //init_set1 (); | 396 | //init_set1 (); |
396 | // limit ~23800 element total | 397 | // limit ~23800 element total |
397 | initRandomSets(19500,20000,20000,32); | 398 | initRandomSets(95,100,100,32); |
398 | } | 399 | } |
399 | 400 | ||
401 | static void execute_perf() | ||
402 | { | ||
403 | for( int repeat_ctr = 0; repeat_ctr<100; repeat_ctr++ ) { | ||
404 | |||
405 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
406 | "Executing perf round %d\n", repeat_ctr); | ||
407 | |||
408 | GNUNET_TESTING_service_run ("perf_setu_api", | ||
409 | "arm", | ||
410 | "test_setu.conf", | ||
411 | &run, | ||
412 | NULL); | ||
413 | } | ||
414 | return 0; | ||
415 | } | ||
416 | |||
417 | |||
400 | 418 | ||
401 | int | 419 | int |
402 | main (int argc, char **argv) | 420 | main (int argc, char **argv) |
403 | { | 421 | { |
404 | GNUNET_log_setup ("test_setu_api", | 422 | GNUNET_log_setup ("perf_setu_api", |
405 | "WARNING", | 423 | "WARNING", |
406 | NULL); | 424 | NULL); |
407 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 425 | |
408 | "Launching peer\n"); | 426 | execute_perf(); |
409 | if (0 != | 427 | return 0; |
410 | GNUNET_TESTING_peer_run ("test_setu_api", | ||
411 | "test_setu.conf", | ||
412 | &run, | ||
413 | NULL)) | ||
414 | { | ||
415 | return 1; | ||
416 | } | ||
417 | return ret; | ||
418 | } | 428 | } |
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, | |||
363 | GNUNET_assert (NULL == ev->parent_queue); | 363 | GNUNET_assert (NULL == ev->parent_queue); |
364 | 364 | ||
365 | mq->queue_length++; | 365 | mq->queue_length++; |
366 | if (mq->queue_length >= 10000) | 366 | if (mq->queue_length >= 10000000) |
367 | { | 367 | { |
368 | /* This would seem like a bug... */ | 368 | /* This would seem like a bug... */ |
369 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 369 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |