mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
criterion announce-response-to-bytes script: ask about saving result
This commit is contained in:
parent
b01226fddc
commit
32402a4dca
1 changed files with 16 additions and 4 deletions
|
|
@ -1,7 +1,19 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# Compare against latest. If you commit changes, replace "latest" directory
|
# Run benchmark, comparing against previous result.
|
||||||
# with "new" directory after running benchmark.
|
|
||||||
|
set -e
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native"
|
export RUSTFLAGS="-C target-cpu=native"
|
||||||
|
|
||||||
cargo bench --bench bench_announce_response_to_bytes -- --noplot --baseline latest
|
cargo bench --bench bench_announce_response_to_bytes -- --noplot --baseline latest
|
||||||
|
|
||||||
|
read -p "Replace previous benchmark result with this one (y/N)? " answer
|
||||||
|
|
||||||
|
case ${answer:0:1} in
|
||||||
|
y|Y )
|
||||||
|
cd aquatic_http_protocol/target/criterion/announce-response-to-bytes/ &&
|
||||||
|
rm -r latest &&
|
||||||
|
mv new latest &&
|
||||||
|
echo "Replaced previous benchmark"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Loading…
Add table
Add a link
Reference in a new issue