Skip to content
Myr

Use jemalloc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Benchmark #1: ./fd-sys-alloc '[0-9]\.jpg$' /home/shark Time (mean ± σ): 246.8 ms ± 3.4 ms [User: 960.1 ms, System: 810.0 ms] Range (min … max): 244.1 ms … 257.1 ms 12 runs Benchmark #2: ./fd-jemalloc '[0-9]\.jpg$' /home/shark Time (mean ± σ): 201.0 ms ± 3.0 ms [User: 833.9 ms, System: 666.9 ms] Range (min … max): 196.1 ms … 206.9 ms 14 runs Summary './fd-jemalloc '[0-9]\.jpg$' /home/shark' ran 1.23 ± 0.03 times faster than './fd-sys-alloc '[0-9]\.jpg$' /home/shark'

authored by sharkdp · committed by David Peter · parent ac3e0e1 · Browse files · 2 files+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−0 removed

  • other:+5 added−0 removed

2 files+5 added−0 removed

modified:src/main.rs+4 added
33 unmodified lines
34 opts::FdOptions,35 pattern_has_uppercase_char, transform_args_with_exec, FileTypes,36};3738// We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/48039#[global_allocator]40static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;4142fn main() {43 let checked_args = transform_args_with_exec(env::args_os());44 let matches = app::build_app().get_matches_from(checked_args);45
237 unmodified lines
modified:Cargo.toml+1 added