Add scripts dir with "run-server.sh" and "bench-handlers.sh"

This commit is contained in:
Joakim Frostegård 2020-04-06 13:16:52 +02:00
parent 165214018c
commit e42dc05996
4 changed files with 12 additions and 2 deletions

View file

@ -6,9 +6,9 @@
* Cleaner code * Cleaner code
* Stack-allocated vector? * Stack-allocated vector?
* Benchmarks * Benchmarks
* Nicer progress output
* Better black_box (or make sure to consume data) * Better black_box (or make sure to consume data)
* Send in connect reponse ids to other functions as integration test * Send in connect reponse ids to other functions as integration test
* target-cpu=native
## Don't do ## Don't do

View file

@ -43,7 +43,7 @@ macro_rules! print_results {
fn main(){ fn main(){
let num_rounds = 100; let num_rounds = 20;
let mut connect_data = (0.0, 0.0); let mut connect_data = (0.0, 0.0);
let mut announce_data = (0.0, 0.0); let mut announce_data = (0.0, 0.0);

5
scripts/bench-handlers.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
export RUSTFLAGS="-C target-cpu=native"
cargo run --release --bin bench_handlers

5
scripts/run-server.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/sh
export RUSTFLAGS="-C target-cpu=native"
cargo run --release --bin aquatic