Don't use time(1) for latency tests

This commit is contained in:
Aaro Altonen 2020-06-09 09:19:08 +03:00
parent bb91e825bd
commit f15e2fa1e0
2 changed files with 2 additions and 5 deletions

View File

@ -136,7 +136,7 @@ sub lat_send {
for ((1 .. 100)) {
$remote->recv($data, 16);
system ("time ./$lib/latency_sender >> $lib/results/latencies 2>&1");
system ("./$lib/latency_sender >> $lib/results/latencies 2>&1");
}
}
@ -146,7 +146,7 @@ sub lat_recv {
for ((1 .. 100)) {
$socket->send("start");
system ("time ./$lib/latency_receiver 2>&1 >/dev/null");
system ("./$lib/latency_receiver 2>&1 >/dev/null");
sleep 2;
}
}

View File

@ -348,9 +348,6 @@ sub parse_latency {
$inter += $nums[1];
$avg += $nums[2];
$cnt += 1;
# ignore time(1) outputs
<$fh>; <$fh>;
}
$intra /= $cnt;