mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
Add scripts dir with "run-server.sh" and "bench-handlers.sh"
This commit is contained in:
parent
165214018c
commit
e42dc05996
4 changed files with 12 additions and 2 deletions
2
TODO.md
2
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
5
scripts/bench-handlers.sh
Executable file
5
scripts/bench-handlers.sh
Executable 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
5
scripts/run-server.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
export RUSTFLAGS="-C target-cpu=native"
|
||||
|
||||
cargo run --release --bin aquatic
|
||||
Loading…
Add table
Add a link
Reference in a new issue