aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichalis Pardalos <m.pardalos@gmail.com>2021-05-31 16:14:40 +0100
committerMichalis Pardalos <m.pardalos@gmail.com>2021-05-31 16:14:40 +0100
commit34a0415ad0c65602ba097c37e23ced9cb3cf390e (patch)
tree173d14dbb6e3255f718441df2cfed05fdd8e1d08
parent17cbc4c54af15cce2c72562e2f1c95cf89c8ba74 (diff)
downloadvericert-34a0415ad0c65602ba097c37e23ced9cb3cf390e.tar.gz
vericert-34a0415ad0c65602ba097c37e23ced9cb3cf390e.zip
Fix extraction of cycle count for benchmark runner
-rwxr-xr-xbenchmarks/run-vericert.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/run-vericert.sh b/benchmarks/run-vericert.sh
index eb23047..66bc15f 100755
--- a/benchmarks/run-vericert.sh
+++ b/benchmarks/run-vericert.sh
@@ -36,7 +36,7 @@ function run_benchmark() {
else
veriresult="$(tail -1 "$benchmark".tmp | cut -d' ' -f2)"
fi
- cycles="$(tail -4 "$benchmark".tmp | head -1 | tr -s ' ' | cut -d' ' -f3)"
+ cycles="$(sed -ne 's/cycles: //p' "$benchmark".tmp)"
ctime="$(head -2 "$benchmark".comp | tail -1 | xargs | cut -d' ' -f2 | cut -d'm' -f2 | sed 's/s//g')"
info "[$benchmark] Veri output: $veriresult"