mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
19 lines
No EOL
488 B
Bash
Executable file
19 lines
No EOL
488 B
Bash
Executable file
#!/bin/bash
|
|
# Run benchmark, comparing against previous result.
|
|
|
|
set -e
|
|
|
|
export RUSTFLAGS="-C target-cpu=native"
|
|
|
|
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 |