From: Christian Grothoff Date: Fri, 15 Jul 2011 08:14:45 +0000 (+0000) Subject: reduce size of benchmarks X-Git-Tag: initial-import-from-subversion-38251~17860 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=92a48cc42922556953e9fb53f07b3de0f79f3c04;p=oweals%2Fgnunet.git reduce size of benchmarks --- diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 4f57c6942..d29505b12 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1336,7 +1336,7 @@ libgnunet_plugin_transport_udp_init (void *cls) "transport-udp", "MAX_BPS", &udp_max_bps)) - udp_max_bps = 1024 * 1024 * 100; /* 100 MB/s == infinity for practical purposes */ + udp_max_bps = 1024 * 1024 * 50; /* 50 MB/s == infinity for practical purposes */ if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (env->cfg, "transport-udp", diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index b77aed545..f606b408c 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c @@ -49,7 +49,7 @@ * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise * messages may be dropped even for a reliable transport. */ -#define TOTAL_MSGS (10000 * 2) +#define TOTAL_MSGS (1024 * 2) /** * How long until we give up on transmitting the message? @@ -206,8 +206,6 @@ get_size (unsigned int iter) { unsigned int ret; - if (iter < 60000) - return iter + sizeof (struct TestMessage); ret = (iter * iter * iter); return sizeof (struct TestMessage) + (ret % 60000); } diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index 76e3e4995..d49a03f24 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c @@ -50,7 +50,7 @@ * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise * messages may be dropped even for a reliable transport. */ -#define TOTAL_MSGS (80000 * 3) /* Total messages should be divisible by 8, so we can make a nice bitmap */ +#define TOTAL_MSGS (1024 * 3) /* Total messages should be divisible by 8, so we can make a nice bitmap */ /** * How long until we give up on transmitting the message? @@ -351,8 +351,6 @@ get_size (unsigned int iter) { unsigned int ret; - if (iter < 60000) - return iter + sizeof (struct TestMessage); ret = (iter * iter * iter); return sizeof (struct TestMessage) + (ret % 60000); } @@ -417,7 +415,7 @@ notify_receive (void *cls, #endif n++; set_bit(ntohl(hdr->num)); - if (0 == (n % (5000))) + if (0 == (n % (TOTAL_MSGS / 100))) { fprintf (stderr, "."); if (GNUNET_SCHEDULER_NO_TASK != die_task)