diff --git a/TODO.md b/TODO.md index 226df71..1877cae 100644 --- a/TODO.md +++ b/TODO.md @@ -6,9 +6,9 @@ * Cleaner code * Stack-allocated vector? * Benchmarks + * Nicer progress output * Better black_box (or make sure to consume data) * Send in connect reponse ids to other functions as integration test -* target-cpu=native ## Don't do diff --git a/aquatic_bench/src/bin/bench_handlers/main.rs b/aquatic_bench/src/bin/bench_handlers/main.rs index 6ae881a..79edbbe 100644 --- a/aquatic_bench/src/bin/bench_handlers/main.rs +++ b/aquatic_bench/src/bin/bench_handlers/main.rs @@ -43,7 +43,7 @@ macro_rules! print_results { fn main(){ - let num_rounds = 100; + let num_rounds = 20; let mut connect_data = (0.0, 0.0); let mut announce_data = (0.0, 0.0); diff --git a/scripts/bench-handlers.sh b/scripts/bench-handlers.sh new file mode 100755 index 0000000..6e2d975 --- /dev/null +++ b/scripts/bench-handlers.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export RUSTFLAGS="-C target-cpu=native" + +cargo run --release --bin bench_handlers \ No newline at end of file diff --git a/scripts/run-server.sh b/scripts/run-server.sh new file mode 100644 index 0000000..fd186da --- /dev/null +++ b/scripts/run-server.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export RUSTFLAGS="-C target-cpu=native" + +cargo run --release --bin aquatic \ No newline at end of file