Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I don't know why fd was disabling jemalloc on musl, when that's the libc where jemalloc really helps (about 3.6x faster than the default malloc on musl 1.2.2). On glibc 2.33 (arch) and 2.28 (buster), jemalloc is only 2-3% faster than the default allocator, which isn't worth the extra compile time. Hyperfine runs searching in a linux kernel checkout where the Arch 5.12.15 config has been compiled on an i7-7700K running at stock speeds. glibc: Benchmark #1: ./fd.gnu-default asdfasdfasdfasdf /workspace/linux-mainline Time (mean ± σ): 83.4 ms ± 2.9 ms [User: 506.0 ms, System: 106.3 ms] Range (min … max): 79.8 ms … 111.6 ms 500 runs Benchmark #2: ./fd.gnu-jemalloc asdfasdfasdfasdf /workspace/linux-mainline Time (mean ± σ): 81.1 ms ± 3.1 ms [User: 483.4 ms, System: 103.5 ms] Range (min … max): 77.6 ms … 118.3 ms 500 runs Summary './fd.gnu-jemalloc asdfasdfasdfasdf /workspace/linux-mainline' ran 1.03 ± 0.05 times faster than './fd.gnu-default asdfasdfasdfasdf /workspace/linux-mainline' musl: Benchmark #1: ./fd.musl-default asdfasdfasdfasdf /workspace/linux-mainline Time (mean ± σ): 274.0 ms ± 3.8 ms [User: 2.040 s, System: 0.069 s] Range (min … max): 266.7 ms … 305.9 ms 500 runs Benchmark #2: ./fd.musl-jemalloc asdfasdfasdfasdf /workspace/linux-mainline Time (mean ± σ): 76.1 ms ± 3.8 ms [User: 480.4 ms, System: 71.6 ms] Range (min … max): 72.1 ms … 112.1 ms 500 runs Summary './fd.musl-jemalloc asdfasdfasdfasdf /workspace/linux-mainline' ran 3.60 ± 0.18 times faster than './fd.musl-default asdfasdfasdfasdf /workspace/linux-mainline'
- Loading branch information