Update scripts

This commit is contained in:
RunasSudo 2022-08-21 07:31:32 +10:00
parent 823f06a32b
commit 55f2e8816a
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
6 changed files with 14 additions and 11 deletions

3
.gitignore vendored
View File

@ -2,9 +2,6 @@
/html/opentally.js
/html/opentally_*.wasm
/benchmark*.log
/perf*.data
/homepage/_news.html
# Jekyll

View File

@ -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

7
build_homepage.sh Executable file
View File

@ -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 ..

View File

@ -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

View File

@ -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

View File

@ -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 $@