mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
aquatic_ws: add bench for InMessage::from_ws_message, take ws msg by ref
This commit is contained in:
parent
74a538963f
commit
99724c7e5d
11 changed files with 1091 additions and 5 deletions
19
scripts/criterion/aquatic-ws-deserialize-announce-request.sh
Executable file
19
scripts/criterion/aquatic-ws-deserialize-announce-request.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# Run benchmark, comparing against previous result.
|
||||
|
||||
set -e
|
||||
|
||||
export RUSTFLAGS="-C target-cpu=native"
|
||||
|
||||
cargo bench --bench bench_deserialize_announce_request -- --noplot --baseline latest
|
||||
|
||||
read -p "Replace previous benchmark result with this one (y/N)? " answer
|
||||
|
||||
case ${answer:0:1} in
|
||||
y|Y )
|
||||
cd aquatic_ws_protocol/target/criterion/deserialize-announce-request/ &&
|
||||
rm -r latest &&
|
||||
mv new latest &&
|
||||
echo "Replaced previous benchmark"
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue