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.
This commit is contained in:
Joakim Frostegård 2020-07-19 16:56:13 +02:00
parent 9df1f0ecc6
commit 4caf174da5
13 changed files with 2064 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/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