Enable jemalloc feature for simple benchmarking
This commit is contained in:
parent
24b6217897
commit
1f7b7a02b1
2
Makefile
2
Makefile
|
@ -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
|
||||
|
||||
###########################################################################
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue