mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
move RUSTFLAGS gen to own file instead of setting in each script
This commit is contained in:
parent
b3caa7ab7b
commit
cff9b44a7f
11 changed files with 18 additions and 46 deletions
1
TODO.md
1
TODO.md
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
## General
|
## General
|
||||||
|
|
||||||
* rustflags for scripts in own .env file or similar
|
|
||||||
* automatic tests running real clients in container?
|
* automatic tests running real clients in container?
|
||||||
|
|
||||||
## aquatic_http_load_test
|
## aquatic_http_load_test
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
cargo run --release --bin aquatic_udp_bench -- $@
|
cargo run --release --bin aquatic_udp_bench -- $@
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native"
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo bench --bench bench_announce_response_to_bytes -- --noplot --baseline latest
|
cargo bench --bench bench_announce_response_to_bytes -- --noplot --baseline latest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native"
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo bench --bench bench_request_from_bytes -- --noplot --baseline latest
|
cargo bench --bench bench_request_from_bytes -- --noplot --baseline latest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
cargo bench --bench bench_deserialize_announce_request -- --noplot --baseline latest
|
cargo bench --bench bench_deserialize_announce_request -- --noplot --baseline latest
|
||||||
|
|
||||||
|
|
|
||||||
9
scripts/env-native-cpu-without-avx-512
Normal file
9
scripts/env-native-cpu-without-avx-512
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Compile with target-cpu=native but without AVX512 features, since they
|
||||||
|
# decrease performance.
|
||||||
|
|
||||||
|
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
||||||
|
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
||||||
|
|
||||||
|
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. scripts/env-native-cpu-wihout-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic_http -- $@
|
cargo run --release --bin aquatic_http -- $@
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
cargo run --release --bin aquatic_udp -- $@
|
cargo run --release --bin aquatic_udp -- $@
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
cargo run --release --bin aquatic_http_load_test -- $@
|
cargo run --release --bin aquatic_http_load_test -- $@
|
||||||
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
cargo run --release --bin aquatic_udp_load_test -- $@
|
cargo run --release --bin aquatic_udp_load_test -- $@
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
cargo run --release --bin aquatic_ws_load_test -- $@
|
cargo run --release --bin aquatic_ws_load_test -- $@
|
||||||
Loading…
Add table
Add a link
Reference in a new issue