Enable jemalloc feature for simple benchmarking

This commit is contained in:
Tony Garnock-Jones 2023-10-05 09:53:27 +02:00
parent 24b6217897
commit 1f7b7a02b1
3 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@ pull-protocols:
static: static-x86_64
static-%:
cross build --target $*-unknown-linux-musl --features vendored-openssl
cross build --target $*-unknown-linux-musl --features vendored-openssl,jemalloc
###########################################################################

View File

@ -40,6 +40,8 @@ able to get faster linking by creating `.cargo/config.toml` as follows:
[build]
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
Enabling the `jemalloc` feature can get a *substantial* (~20%-50%) improvement in throughput.
## Running the examples
In one window, start the server:

View File

@ -13,7 +13,7 @@ inotifytest:
binary: binary-release
binary-release:
cargo build --release --all-targets
cargo build --release --all-targets --features jemalloc
binary-debug:
cargo build --all-targets