diff options
Diffstat (limited to 'src/ats/perf_ats_mlp.c')
-rw-r--r-- | src/ats/perf_ats_mlp.c | 70 |
1 files changed, 41 insertions, 29 deletions
diff --git a/src/ats/perf_ats_mlp.c b/src/ats/perf_ats_mlp.c index ada67fc94..5d370104b 100644 --- a/src/ats/perf_ats_mlp.c +++ b/src/ats/perf_ats_mlp.c | |||
@@ -366,39 +366,51 @@ check (void *cls, char *const *args, const char *cfgfile, | |||
366 | } | 366 | } |
367 | if (GNUNET_NO == opt_numeric) | 367 | if (GNUNET_NO == opt_numeric) |
368 | { | 368 | { |
369 | fprintf (stderr, "Rebuild: %03u peers each %02u addresses; rebuild: LP/MIP state [%3s/%3s] presolv [%3s/%3s], (build/LP/MIP in ms) %04llu / %04llu / %04llu\n", | 369 | fprintf (stderr, |
370 | cp + 1, ca, | 370 | "Rebuild: %03u peers each %02u addresses; rebuild: LP/MIP state [%3s/%3s] presolv [%3s/%3s], (build/LP/MIP in us) %04llu / %04llu / %04llu\n", |
371 | (GNUNET_OK == full_lp_res) ? "OK" : "FAIL", | 371 | cp + 1, ca, |
372 | (GNUNET_OK == full_mip_res) ? "OK" : "FAIL", | 372 | (GNUNET_OK == full_lp_res) ? "OK" : "FAIL", |
373 | (GLP_YES == full_lp_presolv) ? "YES" : "NO", | 373 | (GNUNET_OK == full_mip_res) ? "OK" : "FAIL", |
374 | (GNUNET_OK == full_mip_presolv) ? "YES" : "NO", | 374 | (GLP_YES == full_lp_presolv) ? "YES" : "NO", |
375 | (unsigned long long) full_build_dur.rel_value, (unsigned long long) full_lp_dur.rel_value, (unsigned long long) full_mip_dur.rel_value); | 375 | (GNUNET_OK == full_mip_presolv) ? "YES" : "NO", |
376 | (unsigned long long) full_build_dur.rel_value_us, | ||
377 | (unsigned long long) full_lp_dur.rel_value_us, | ||
378 | (unsigned long long) full_mip_dur.rel_value_us); | ||
376 | if ((0 < opt_update_quantity) || (0 < opt_update_percent)) | 379 | if ((0 < opt_update_quantity) || (0 < opt_update_percent)) |
377 | fprintf (stderr, "Update : %03u peers each %02u addresses; rebuild: LP/MIP state [%3s/%3s] presolv [%3s/%3s], (build/LP/MIP in ms) %04llu / %04llu / %04llu\n", | 380 | fprintf (stderr, |
378 | cp + 1, ca, | 381 | "Update: %03u peers each %02u addresses; rebuild: LP/MIP state [%3s/%3s] presolv [%3s/%3s], (build/LP/MIP in us) %04llu / %04llu / %04llu\n", |
379 | (GNUNET_OK == update_lp_res) ? "OK" : "FAIL", | 382 | cp + 1, ca, |
380 | (GNUNET_OK == update_mip_res) ? "OK" : "FAIL", | 383 | (GNUNET_OK == update_lp_res) ? "OK" : "FAIL", |
381 | (GLP_YES == update_lp_presolv) ? "YES" : "NO", | 384 | (GNUNET_OK == update_mip_res) ? "OK" : "FAIL", |
382 | (GNUNET_OK == update_mip_presolv) ? "YES" : "NO", | 385 | (GLP_YES == update_lp_presolv) ? "YES" : "NO", |
383 | (unsigned long long) update_build_dur.rel_value, (unsigned long long) update_lp_dur.rel_value, (unsigned long long) update_mip_dur.rel_value); | 386 | (GNUNET_OK == update_mip_presolv) ? "YES" : "NO", |
387 | (unsigned long long) update_build_dur.rel_value_us, | ||
388 | (unsigned long long) update_lp_dur.rel_value_us, | ||
389 | (unsigned long long) update_mip_dur.rel_value_us); | ||
384 | } | 390 | } |
385 | else | 391 | else |
386 | { | 392 | { |
387 | fprintf (stderr, "Rebuild;%u;%u;%s;%s;%s;%s;%04llu;%04llu;%04llu\n", | 393 | fprintf (stderr, |
388 | cp + 1, ca, | 394 | "Rebuild;%u;%u;%s;%s;%s;%s;%04llu;%04llu;%04llu\n", |
389 | (GNUNET_OK == full_lp_res) ? "OK" : "FAIL", | 395 | cp + 1, ca, |
390 | (GNUNET_OK == full_mip_res) ? "OK" : "FAIL", | 396 | (GNUNET_OK == full_lp_res) ? "OK" : "FAIL", |
391 | (GLP_YES == full_lp_presolv) ? "YES" : "NO", | 397 | (GNUNET_OK == full_mip_res) ? "OK" : "FAIL", |
392 | (GNUNET_OK == full_mip_presolv) ? "YES" : "NO", | 398 | (GLP_YES == full_lp_presolv) ? "YES" : "NO", |
393 | (unsigned long long) full_build_dur.rel_value, (unsigned long long) full_lp_dur.rel_value, (unsigned long long) full_mip_dur.rel_value); | 399 | (GNUNET_OK == full_mip_presolv) ? "YES" : "NO", |
394 | if ((0 < opt_update_quantity) || (0 < opt_update_percent)) | 400 | (unsigned long long) full_build_dur.rel_value_us, |
395 | fprintf (stderr, "Update;%u;%u;%s;%s;%s;%s;%04llu;%04llu;%04llu\n", | 401 | (unsigned long long) full_lp_dur.rel_value_us, |
396 | cp + 1, ca, | 402 | (unsigned long long) full_mip_dur.rel_value_us); |
397 | (GNUNET_OK == update_lp_res) ? "OK" : "FAIL", | 403 | if ((0 < opt_update_quantity) || (0 < opt_update_percent)) |
398 | (GNUNET_OK == update_mip_res) ? "OK" : "FAIL", | 404 | fprintf (stderr, |
399 | (GLP_YES == update_lp_presolv) ? "YES" : "NO", | 405 | "Update;%u;%u;%s;%s;%s;%s;%04llu;%04llu;%04llu\n", |
400 | (GNUNET_OK == update_mip_presolv) ? "YES" : "NO", | 406 | cp + 1, ca, |
401 | (unsigned long long) update_build_dur.rel_value, (unsigned long long) update_lp_dur.rel_value, (unsigned long long) update_mip_dur.rel_value); | 407 | (GNUNET_OK == update_lp_res) ? "OK" : "FAIL", |
408 | (GNUNET_OK == update_mip_res) ? "OK" : "FAIL", | ||
409 | (GLP_YES == update_lp_presolv) ? "YES" : "NO", | ||
410 | (GNUNET_OK == update_mip_presolv) ? "YES" : "NO", | ||
411 | (unsigned long long) update_build_dur.rel_value_us, | ||
412 | (unsigned long long) update_lp_dur.rel_value_us, | ||
413 | (unsigned long long) update_mip_dur.rel_value_us); | ||
402 | } | 414 | } |
403 | } | 415 | } |
404 | } | 416 | } |