54 out <<
"----------------------------------------------------------\n";
65 out <<
"----------------------------------------------------------\n";
68 out <<
"\tLatency Average: " << r.
latency_avg << endl;
75 out <<
"----------------------------------------------------------\n";
76 out <<
"Single-Threaded Latency Test " << test_num << endl;
78 out <<
"\tLatency Average: " << r.
latency_avg << endl;
163 int main(
int argc,
char** argv)
165 std::ofstream out(
"intra_suite_out.txt", std::ios::out);
185 printf(
"\n\n\n***************************** Results *****************************\n\n");
188 V_ThroughputResult::iterator it = throughput_results.begin();
189 V_ThroughputResult::iterator end = throughput_results.end();
190 for (; it != end; ++it, ++i)
199 V_LatencyResult::iterator it = latency_results.begin();
200 V_LatencyResult::iterator end = latency_results.end();
201 for (; it != end; ++it, ++i)
210 V_STLatencyResult::iterator it = stlatency_results.begin();
211 V_STLatencyResult::iterator end = stlatency_results.end();
212 for (; it != end; ++it, ++i)
void printResult(std::ostream &out, uint32_t test_num, intra::ThroughputResult &r)
STLatencyResult stlatency(uint32_t message_count)
std::vector< intra::STLatencyResult > V_STLatencyResult
uint64_t messages_received
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
uint64_t count_per_stream
void addResult(V_ThroughputResult &results, intra::ThroughputResult r, std::ostream &out, uint32_t i)
uint32_t receiver_threads
void runLatencyTests(std::ostream &out, V_LatencyResult &results)
uint64_t total_bytes_received
void runThroughputTests(std::ostream &out, V_ThroughputResult &results)
ThroughputResult throughput(double duration, uint32_t streams, uint32_t message_size, uint32_t sender_threads, uint32_t receiver_threads)
uint64_t total_message_count
uint64_t total_message_count
uint32_t receiver_threads
std::vector< intra::ThroughputResult > V_ThroughputResult
std::vector< intra::LatencyResult > V_LatencyResult
LatencyResult latency(uint32_t count_per_stream, uint32_t streams, uint32_t message_size, uint32_t sender_threads, uint32_t receiver_threads)
int main(int argc, char **argv)
void runSTLatencyTests(std::ostream &out, V_STLatencyResult &results)
uint64_t total_bytes_sent
uint64_t bytes_per_second