Commit 173862df authored by Philip Carns's avatar Philip Carns

patch that prevents timing rtt's individually

- just keeping in git as a debugging hack to keep time calls from
  showing up in profiles
parent 9b04f153
diff --git a/tests/perf-regression/margo-p2p-latency.c b/tests/perf-regression/margo-p2p-latency.c
index e5827eb..fc238f4 100644
--- a/tests/perf-regression/margo-p2p-latency.c
+++ b/tests/perf-regression/margo-p2p-latency.c
@@ -355,13 +355,17 @@ static int run_benchmark(int iterations, hg_id_t id, ssg_member_id_t target,
ret = margo_create(mid, target_addr, id, &handle);
assert(ret == 0);
+ tm1 = ABT_get_wtime();
for(i=0; i<iterations; i++)
{
- tm1 = ABT_get_wtime();
ret = margo_forward(handle, NULL);
- tm2 = ABT_get_wtime();
assert(ret == 0);
- measurement_array[i] = tm2-tm1;
+ }
+ tm2 = ABT_get_wtime();
+
+ for(i=0; i<iterations; i++)
+ {
+ measurement_array[i] = (tm2-tm1)/((double)iterations);
}
margo_destroy(handle);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment