Update scripts
This commit is contained in:
parent
823f06a32b
commit
55f2e8816a
|
@ -2,9 +2,6 @@
|
|||
/html/opentally.js
|
||||
/html/opentally_*.wasm
|
||||
|
||||
/benchmark*.log
|
||||
/perf*.data
|
||||
|
||||
/homepage/_news.html
|
||||
|
||||
# Jekyll
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
cargo build --release || exit
|
||||
|
||||
perf stat -r 5 --table -o 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 $@
|
||||
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 $@
|
||||
|
||||
cat benchmark.log
|
||||
git describe --always --dirty=-dev | tee -a benchmark.log
|
||||
cat target/benchmark.log
|
||||
git describe --always --dirty=-dev | tee -a target/benchmark.log
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
DESTDIR='/home/runassudo/Documents/Work/School Cloud Data/unenc/public/www/opentally'
|
||||
|
||||
cd homepage
|
||||
bundle exec jekyll build -d "$DESTDIR"
|
||||
cd ..
|
|
@ -4,8 +4,7 @@ PATH=$PATH:$HOME/.cargo/bin
|
|||
mkdir -p target/coverage/prof
|
||||
rm target/coverage/prof/*.profraw
|
||||
|
||||
export RUSTC=./rustc_bs.sh
|
||||
export RUSTFLAGS="-Zinstrument-coverage -Copt-level=0 -Clink-dead-code"
|
||||
export RUSTFLAGS="-Cinstrument-coverage -Copt-level=0 -Clink-dead-code"
|
||||
export LLVM_PROFILE_FILE="target/coverage/prof/opentally-%p-%m.profraw"
|
||||
export CARGO_TARGET_DIR=target/coverage
|
||||
cargo test
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
mv benchmark.log benchmark.baseline.log
|
||||
mv perf.data perf.baseline.data
|
||||
mv target/benchmark.log target/benchmark.baseline.log
|
||||
mv target/perf.data target/perf.baseline.data
|
||||
|
|
|
@ -6,4 +6,4 @@ rm perf.data
|
|||
./target/perf/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 $@
|
||||
|
||||
# Profile
|
||||
perf record -g --call-graph=dwarf ./target/perf/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 $@
|
||||
perf record -g -o target/perf.data --call-graph=dwarf ./target/perf/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 $@
|
||||
|
|
Loading…
Reference in New Issue