From 1f7b7a02b18a1bfdcf5e4c9b9f58217450963f15 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Thu, 5 Oct 2023 09:53:27 +0200 Subject: [PATCH] Enable jemalloc feature for simple benchmarking --- Makefile | 2 +- README.md | 2 ++ syndicate-server/Makefile | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8701bcf..5795d13 100644 --- a/Makefile +++ b/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 ########################################################################### diff --git a/README.md b/README.md index 71fa5f8..a7d22ed 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/syndicate-server/Makefile b/syndicate-server/Makefile index 5609648..7709ed4 100644 --- a/syndicate-server/Makefile +++ b/syndicate-server/Makefile @@ -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