diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-15 08:14:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-15 08:14:45 +0000 |
commit | 92a48cc42922556953e9fb53f07b3de0f79f3c04 (patch) | |
tree | aafe1f8d4ebc2bd2193410d6c2f017419c181304 /src/transport/test_transport_api_unreliability.c | |
parent | 814ecec2435a86cbc7e6d09b28b3aa9d2e060e56 (diff) | |
download | gnunet-92a48cc42922556953e9fb53f07b3de0f79f3c04.tar.gz gnunet-92a48cc42922556953e9fb53f07b3de0f79f3c04.zip |
reduce size of benchmarks
Diffstat (limited to 'src/transport/test_transport_api_unreliability.c')
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 @@ | |||
50 | * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise | 50 | * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise |
51 | * messages may be dropped even for a reliable transport. | 51 | * messages may be dropped even for a reliable transport. |
52 | */ | 52 | */ |
53 | #define TOTAL_MSGS (80000 * 3) /* Total messages should be divisible by 8, so we can make a nice bitmap */ | 53 | #define TOTAL_MSGS (1024 * 3) /* Total messages should be divisible by 8, so we can make a nice bitmap */ |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * How long until we give up on transmitting the message? | 56 | * How long until we give up on transmitting the message? |
@@ -351,8 +351,6 @@ get_size (unsigned int iter) | |||
351 | { | 351 | { |
352 | unsigned int ret; | 352 | unsigned int ret; |
353 | 353 | ||
354 | if (iter < 60000) | ||
355 | return iter + sizeof (struct TestMessage); | ||
356 | ret = (iter * iter * iter); | 354 | ret = (iter * iter * iter); |
357 | return sizeof (struct TestMessage) + (ret % 60000); | 355 | return sizeof (struct TestMessage) + (ret % 60000); |
358 | } | 356 | } |
@@ -417,7 +415,7 @@ notify_receive (void *cls, | |||
417 | #endif | 415 | #endif |
418 | n++; | 416 | n++; |
419 | set_bit(ntohl(hdr->num)); | 417 | set_bit(ntohl(hdr->num)); |
420 | if (0 == (n % (5000))) | 418 | if (0 == (n % (TOTAL_MSGS / 100))) |
421 | { | 419 | { |
422 | fprintf (stderr, "."); | 420 | fprintf (stderr, "."); |
423 | if (GNUNET_SCHEDULER_NO_TASK != die_task) | 421 | if (GNUNET_SCHEDULER_NO_TASK != die_task) |