aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-07 10:29:52 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-07 10:29:52 +0000
commita0bd2c9a054508c0dd24806e8c69ea2804927ce4 (patch)
tree0dd5a963077956414c39172e62b0d3f973373a69
parent05554f99c40fb24b61ed52c1dcaac2356ed509ea (diff)
downloadgnunet-a0bd2c9a054508c0dd24806e8c69ea2804927ce4.tar.gz
gnunet-a0bd2c9a054508c0dd24806e8c69ea2804927ce4.zip
enable test
-rw-r--r--src/fs/Makefile.am2
-rw-r--r--src/fs/perf_gnunet_service_fs_p2p_trust.c22
2 files changed, 9 insertions, 15 deletions
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am
index f30200654..d433e5b66 100644
--- a/src/fs/Makefile.am
+++ b/src/fs/Makefile.am
@@ -196,9 +196,9 @@ TESTS = \
196 test_gnunet_service_fs_p2p \ 196 test_gnunet_service_fs_p2p \
197 perf_gnunet_service_fs_p2p \ 197 perf_gnunet_service_fs_p2p \
198 perf_gnunet_service_fs_p2p_index \ 198 perf_gnunet_service_fs_p2p_index \
199 perf_gnunet_service_fs_p2p_trust \
199 $(check_SCRIPTS) 200 $(check_SCRIPTS)
200endif 201endif
201# perf_gnunet_service_fs_p2p_trust
202 202
203 203
204 204
diff --git a/src/fs/perf_gnunet_service_fs_p2p_trust.c b/src/fs/perf_gnunet_service_fs_p2p_trust.c
index c15d5ebdb..444e7e7c3 100644
--- a/src/fs/perf_gnunet_service_fs_p2p_trust.c
+++ b/src/fs/perf_gnunet_service_fs_p2p_trust.c
@@ -32,26 +32,20 @@
32 * leachers should see fast download rates as well. 32 * leachers should see fast download rates as well.
33 * @author Christian Grothoff 33 * @author Christian Grothoff
34 * 34 *
35 * Sample outputs: 35 * Sample output:
36 * - 1 MB, 3 peers: 36 * - 10 MB, 3 peers:
37 * Download speed of type `seeder 1' was 3864 KiB/s 37 * Download speed of type `seeder 1' was 6 MiB/s
38 * Download speed of type `seeder 2' was 3764 KiB/s 38 * Download speed of type `seeder 2' was 6 MiB/s
39 * Download speed of type `leach' was 3592 KiB/s 39 * Download speed of type `leach` was 1051 KiB/s
40 * Analysis: download too small for trust to go into effect
41 * - 100 MB, 3 peers:
42 * Download speed of type `seeder 1' was 4018 KiB/s
43 * Download speed of type `seeder 2' was 4016 KiB/s
44 * 40 *
45 * Analysis: leach squeezed out entirely early, then backs off far too 41 * Analysis: leach squeezed out entirely early, then gets to
46 * far => fails to ever recover (code needs improvement...) 42 * take its turn once the main downloads complete
47 * [system load is initially very high, then drops to 0
48 * after seeders are done]
49 */ 43 */
50#include "platform.h" 44#include "platform.h"
51#include "fs_test_lib.h" 45#include "fs_test_lib.h"
52#include "gnunet_testing_lib.h" 46#include "gnunet_testing_lib.h"
53 47
54#define VERBOSE GNUNET_YES 48#define VERBOSE GNUNET_NO
55 49
56/** 50/**
57 * File-size we use for testing. 51 * File-size we use for testing.