From 34a0415ad0c65602ba097c37e23ced9cb3cf390e Mon Sep 17 00:00:00 2001 From: Michalis Pardalos Date: Mon, 31 May 2021 16:14:40 +0100 Subject: Fix extraction of cycle count for benchmark runner --- benchmarks/run-vericert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit