diff options
author | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-04-02 16:43:26 +0200 |
---|---|---|
committer | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-04-02 16:43:26 +0200 |
commit | 265bdcd1370e1764d538184040edbb380e6fbf93 (patch) | |
tree | e118d460f8a0040bc830bbe22c286010c7aa391b /src/setu/perf_setu_api.c | |
parent | 026ced682652a1a19dd8a7e9fe45c22fa5d38aca (diff) | |
download | gnunet-265bdcd1370e1764d538184040edbb380e6fbf93.tar.gz gnunet-265bdcd1370e1764d538184040edbb380e6fbf93.zip |
Made all required perfomance parameters costumizable
Diffstat (limited to 'src/setu/perf_setu_api.c')
-rw-r--r-- | src/setu/perf_setu_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c index ef20b48ce..a2fea6ff4 100644 --- a/src/setu/perf_setu_api.c +++ b/src/setu/perf_setu_api.c | |||
@@ -402,16 +402,16 @@ run (void *cls, | |||
402 | "Running real set-reconciliation\n"); | 402 | "Running real set-reconciliation\n"); |
403 | //init_set1 (); | 403 | //init_set1 (); |
404 | // limit ~23800 element total | 404 | // limit ~23800 element total |
405 | initRandomSets(475,500,500,32); | 405 | initRandomSets(450,500,500,32); |
406 | } | 406 | } |
407 | 407 | ||
408 | static void execute_perf() | 408 | static void execute_perf() |
409 | { | 409 | { |
410 | setu_cfg = GNUNET_CONFIGURATION_create (); | 410 | setu_cfg = GNUNET_CONFIGURATION_create (); |
411 | GNUNET_CONFIGURATION_set_value_number (setu_cfg, "IBF", "BUCKET_NUMBER", 5); | 411 | GNUNET_CONFIGURATION_set_value_string (setu_cfg, "IBF", "BUCKET_NUMBER_FACTOR", "1"); // Factor default=4 |
412 | GNUNET_CONFIGURATION_set_value_number (setu_cfg, "IBF", "NUMBER_PER_BUCKET", 4); | 412 | GNUNET_CONFIGURATION_set_value_number (setu_cfg, "IBF", "NUMBER_PER_BUCKET", 4); // K default=4 |
413 | GNUNET_CONFIGURATION_set_value_string (setu_cfg, "PERFORMANCE", "TRADEOFF", "0.25"); | 413 | GNUNET_CONFIGURATION_set_value_string (setu_cfg, "PERFORMANCE", "TRADEOFF", "0.25"); |
414 | GNUNET_CONFIGURATION_set_value_string (setu_cfg, "PERFORMANCE", "MAX_SET_DIFF_FACTOR_DIFFERENTIAL", "0.25"); | 414 | GNUNET_CONFIGURATION_set_value_string (setu_cfg, "PERFORMANCE", "MAX_SET_DIFF_FACTOR_DIFFERENTIAL", "0.25"); //default=4 |
415 | 415 | ||
416 | /** | 416 | /** |
417 | * Erase statfile | 417 | * Erase statfile |