mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
aquatic_ws: OutMessage and InMessage simd-json fixes
* use simd-json in OutMessage deserialization * take ownership in InMessage deserialization to avoid bugs * Update benchmark results, benchmark was broken * Compile simd-json even if simd is not on, so that rust-analyzer works
This commit is contained in:
parent
8dfe524421
commit
56bc028a44
9 changed files with 1031 additions and 1020 deletions
|
|
@ -3,7 +3,13 @@
|
|||
|
||||
set -e
|
||||
|
||||
export RUSTFLAGS="-C target-cpu=native"
|
||||
# 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"
|
||||
|
||||
cargo bench --bench bench_deserialize_announce_request -- --noplot --baseline latest
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue