OpenTally/scripts/benchmark.sh

8 lines
439 B
Bash
Raw Normal View History

2022-08-21 02:24:24 +10:00
#!/bin/bash
cargo build --release || exit
2022-08-21 07:31:32 +10:00
perf stat -r 5 --table -o target/benchmark.log ./target/release/opentally stv tests/data/raw/VIC2022.bin --bin --round-votes 0 --round-quota 0 --quota droop --quota-criterion geq --ties backwards random --random-seed 20210727 --surplus uig --surplus-order by_order --exclusion by_value --pp-decimals 0 $@
2022-08-21 02:24:24 +10:00
2022-08-21 07:31:32 +10:00
cat target/benchmark.log
git describe --always --dirty=-dev | tee -a target/benchmark.log