From 3712ece70b09cb850f14cf6c5aa96442ffb4143d Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 19 May 2025 16:01:25 +0200 Subject: [PATCH] performance.md: recommend to build with the right profile (#7930) * performance.md: recommend to build with the right profile * doc: also update the paths --- docs/src/performance.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/performance.md b/docs/src/performance.md index 39dd6a969..10c7b3834 100644 --- a/docs/src/performance.md +++ b/docs/src/performance.md @@ -23,7 +23,7 @@ This three-way comparison provides clear insights into: First, you will need to build the binary in release mode. Debug builds are significantly slower: ```bash -cargo build --features unix --release +cargo build --features unix --profile profiling ``` ```bash @@ -31,13 +31,13 @@ cargo build --features unix --release hyperfine \ --warmup 3 \ "/usr/bin/ls -R ." \ - "./target/release/coreutils.prev ls -R ." \ - "./target/release/coreutils ls -R ." + "./target/profiling/coreutils.prev ls -R ." \ + "./target/profiling/coreutils ls -R ." # can be simplified with: hyperfine \ --warmup 3 \ - -L ls /usr/bin/ls,"./target/release/coreutils.prev ls","./target/release/coreutils ls" \ + -L ls /usr/bin/ls,"./target/profiling/coreutils.prev ls","./target/profiling/coreutils ls" \ "{ls} -R ." ```