diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-07 22:08:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-07 22:08:36 +0000 |
commit | 4cb7e23cef8a149ac1334519ff898cc05811ac66 (patch) | |
tree | 74701b6ef23c97b508a8a382fc929ed4ca783bbf /src/fs/perf_gnunet_service_fs_p2p_trust.c | |
parent | a75ced83ea0041bc72e615743aa192f141ead643 (diff) | |
download | gnunet-4cb7e23cef8a149ac1334519ff898cc05811ac66.tar.gz gnunet-4cb7e23cef8a149ac1334519ff898cc05811ac66.zip |
add support for delays
Diffstat (limited to 'src/fs/perf_gnunet_service_fs_p2p_trust.c')
-rw-r--r-- | src/fs/perf_gnunet_service_fs_p2p_trust.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fs/perf_gnunet_service_fs_p2p_trust.c b/src/fs/perf_gnunet_service_fs_p2p_trust.c index 444e7e7c3..0128e281d 100644 --- a/src/fs/perf_gnunet_service_fs_p2p_trust.c +++ b/src/fs/perf_gnunet_service_fs_p2p_trust.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2010,2011 Christian Grothoff (and other contributing authors) | 3 | (C) 2010, 2011 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -33,13 +33,15 @@ | |||
33 | * @author Christian Grothoff | 33 | * @author Christian Grothoff |
34 | * | 34 | * |
35 | * Sample output: | 35 | * Sample output: |
36 | * - 10 MB, 3 peers: | 36 | * - 10 MB, 3 peers, with delays: |
37 | * Download speed of type `seeder 1' was 6 MiB/s | 37 | * Download speed of type `seeder 1' was 757 KiB/s |
38 | * Download speed of type `seeder 2' was 6 MiB/s | 38 | * Download speed of type `seeder 2' was 613 KiB/s |
39 | * Download speed of type `leach` was 1051 KiB/s | 39 | * Download speed of type `leach` was 539 KiB/s |
40 | * | 40 | * |
41 | * Analysis: leach squeezed out entirely early, then gets to | 41 | * - 10 MB, 3 peers, without delays: |
42 | * take its turn once the main downloads complete | 42 | * Download speed of type `seeder 1' was 1784 KiB/s |
43 | * Download speed of type `seeder 2' was 1604 KiB/s | ||
44 | * Download speed of type `leach` was 1384 KiB/s | ||
43 | */ | 45 | */ |
44 | #include "platform.h" | 46 | #include "platform.h" |
45 | #include "fs_test_lib.h" | 47 | #include "fs_test_lib.h" |
@@ -114,6 +116,7 @@ struct StatValues | |||
114 | */ | 116 | */ |
115 | static struct StatValues stats[] = | 117 | static struct StatValues stats[] = |
116 | { | 118 | { |
119 | { "fs", "# artificial delays introduced (ms)"}, | ||
117 | { "fs", "# queries forwarded"}, | 120 | { "fs", "# queries forwarded"}, |
118 | { "fs", "# replies received and matched"}, | 121 | { "fs", "# replies received and matched"}, |
119 | { "fs", "# results found locally"}, | 122 | { "fs", "# results found locally"}, |
@@ -126,13 +129,10 @@ static struct StatValues stats[] = | |||
126 | { "fs", "# P2P searches discarded (queue length bound)"}, | 129 | { "fs", "# P2P searches discarded (queue length bound)"}, |
127 | { "fs", "# replies received for local clients"}, | 130 | { "fs", "# replies received for local clients"}, |
128 | { "fs", "# queries retransmitted to same target"}, | 131 | { "fs", "# queries retransmitted to same target"}, |
129 | { "fs", "cummulative artificial delay introduced (ms)"}, | ||
130 | { "core", "# bytes decrypted"}, | 132 | { "core", "# bytes decrypted"}, |
131 | { "core", "# bytes encrypted"}, | 133 | { "core", "# bytes encrypted"}, |
132 | { "core", "# discarded CORE_SEND requests"}, | 134 | { "core", "# discarded CORE_SEND requests"}, |
133 | { "core", "# discarded CORE_SEND request bytes"}, | ||
134 | { "core", "# discarded lower priority CORE_SEND requests"}, | 135 | { "core", "# discarded lower priority CORE_SEND requests"}, |
135 | { "core", "# discarded lower priority CORE_SEND request bytes"}, | ||
136 | { "transport", "# bytes received via TCP"}, | 136 | { "transport", "# bytes received via TCP"}, |
137 | { "transport", "# bytes transmitted via TCP"}, | 137 | { "transport", "# bytes transmitted via TCP"}, |
138 | { "datacache", "# bytes stored"}, | 138 | { "datacache", "# bytes stored"}, |
@@ -309,12 +309,12 @@ do_downloads (void *cls, | |||
309 | VERBOSE, | 309 | VERBOSE, |
310 | &do_report, "leach"); | 310 | &do_report, "leach"); |
311 | /* mutual downloads of (primary) sharing peers */ | 311 | /* mutual downloads of (primary) sharing peers */ |
312 | GNUNET_FS_TEST_download (daemons[NUM_DAEMONS-1], | 312 | GNUNET_FS_TEST_download (daemons[NUM_DAEMONS-2], |
313 | TIMEOUT, | 313 | TIMEOUT, |
314 | anonymity, SEED1, uri1, | 314 | anonymity, SEED1, uri1, |
315 | VERBOSE, | 315 | VERBOSE, |
316 | &do_report, "seeder 2"); | 316 | &do_report, "seeder 2"); |
317 | GNUNET_FS_TEST_download (daemons[NUM_DAEMONS-2], | 317 | GNUNET_FS_TEST_download (daemons[NUM_DAEMONS-1], |
318 | TIMEOUT, | 318 | TIMEOUT, |
319 | anonymity, SEED2, uri2, | 319 | anonymity, SEED2, uri2, |
320 | VERBOSE, | 320 | VERBOSE, |