diff options
author | Michalis Pardalos <m.pardalos@gmail.com> | 2021-05-31 16:14:40 +0100 |
---|---|---|
committer | Michalis Pardalos <m.pardalos@gmail.com> | 2021-05-31 16:14:40 +0100 |
commit | 34a0415ad0c65602ba097c37e23ced9cb3cf390e (patch) | |
tree | 173d14dbb6e3255f718441df2cfed05fdd8e1d08 /benchmarks/run-vericert.sh | |
parent | 17cbc4c54af15cce2c72562e2f1c95cf89c8ba74 (diff) | |
download | vericert-34a0415ad0c65602ba097c37e23ced9cb3cf390e.tar.gz vericert-34a0415ad0c65602ba097c37e23ced9cb3cf390e.zip |
Fix extraction of cycle count for benchmark runner
Diffstat (limited to 'benchmarks/run-vericert.sh')
-rwxr-xr-x | benchmarks/run-vericert.sh | 2 |
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" |