aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tests/perf_ats.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats-tests/perf_ats.h')
-rw-r--r--src/ats-tests/perf_ats.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/ats-tests/perf_ats.h b/src/ats-tests/perf_ats.h
index 2d552a5d7..6460aa098 100644
--- a/src/ats-tests/perf_ats.h
+++ b/src/ats-tests/perf_ats.h
@@ -30,26 +30,32 @@
30#include "gnunet_core_service.h" 30#include "gnunet_core_service.h"
31#include "ats-testing.h" 31#include "ats-testing.h"
32 32
33#define TEST_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 120) 33#define TEST_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, \
34#define BENCHMARK_DURATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 10) 34 120)
35#define LOGGING_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 500) 35#define BENCHMARK_DURATION GNUNET_TIME_relative_multiply ( \
36 GNUNET_TIME_UNIT_SECONDS, 10)
37#define LOGGING_FREQUENCY GNUNET_TIME_relative_multiply ( \
38 GNUNET_TIME_UNIT_MILLISECONDS, 500)
36#define TESTNAME_PREFIX "perf_ats_" 39#define TESTNAME_PREFIX "perf_ats_"
37#define DEFAULT_SLAVES_NUM 2 40#define DEFAULT_SLAVES_NUM 2
38#define DEFAULT_MASTERS_NUM 1 41#define DEFAULT_MASTERS_NUM 1
39 42
40#define TEST_ATS_PREFRENCE_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1) 43#define TEST_ATS_PREFRENCE_FREQUENCY GNUNET_TIME_relative_multiply ( \
44 GNUNET_TIME_UNIT_SECONDS, 1)
41#define TEST_ATS_PREFRENCE_START 1.0 45#define TEST_ATS_PREFRENCE_START 1.0
42#define TEST_ATS_PREFRENCE_DELTA 1.0 46#define TEST_ATS_PREFRENCE_DELTA 1.0
43 47
44#define TEST_MESSAGE_TYPE_PING 12345 48#define TEST_MESSAGE_TYPE_PING 12345
45#define TEST_MESSAGE_TYPE_PONG 12346 49#define TEST_MESSAGE_TYPE_PONG 12346
46#define TEST_MESSAGE_SIZE 1000 50#define TEST_MESSAGE_SIZE 1000
47#define TEST_MESSAGE_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1) 51#define TEST_MESSAGE_FREQUENCY GNUNET_TIME_relative_multiply ( \
52 GNUNET_TIME_UNIT_SECONDS, 1)
48 53
49/** 54/**
50 * Information about a benchmarking partner 55 * Information about a benchmarking partner
51 */ 56 */
52struct BenchmarkPartner { 57struct BenchmarkPartner
58{
53 /** 59 /**
54 * The peer itself this partner belongs to 60 * The peer itself this partner belongs to
55 */ 61 */
@@ -127,7 +133,8 @@ struct BenchmarkPartner {
127/** 133/**
128 * Information we track for a peer in the testbed. 134 * Information we track for a peer in the testbed.
129 */ 135 */
130struct BenchmarkPeer { 136struct BenchmarkPeer
137{
131 /** 138 /**
132 * Handle with testbed. 139 * Handle with testbed.
133 */ 140 */
@@ -194,7 +201,7 @@ struct BenchmarkPeer {
194 * Masters only 201 * Masters only
195 * Progress task 202 * Progress task
196 */ 203 */
197 struct GNUNET_SCHEDULER_Task * ats_task; 204 struct GNUNET_SCHEDULER_Task *ats_task;
198 205
199 /** 206 /**
200 * Masters only 207 * Masters only