aquatic/scripts/criterion/aquatic-http-announce-response-to-bytes.sh
Joakim Frostegård 4caf174da5 aquatic_http: add criterion benchmark for announce response to bytes
Speedup of custom implementation compared to using bendy:

announce-response-to-bytes:

time:   [413.77 ns 415.34 ns 417.08 ns]
change: [-93.074% -93.021% -92.968%] (p = 0.00 < 0.01)
Performance has improved.
2020-07-19 16:56:13 +02:00

7 lines
No EOL
258 B
Bash
Executable file

#!/bin/sh
# Compare against latest. If you commit changes, replace "latest" directory
# with "new" directory after running benchmark.
export RUSTFLAGS="-C target-cpu=native"
cargo bench --bench bench_announce_response_to_bytes -- --noplot --baseline latest