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:
Joakim Frostegård 2020-08-11 23:01:24 +02:00
parent 8dfe524421
commit 56bc028a44
9 changed files with 1031 additions and 1020 deletions

View file

@ -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