Skip to content

Commit 3712ece

Browse files
authored
performance.md: recommend to build with the right profile (#7930)
* performance.md: recommend to build with the right profile * doc: also update the paths
1 parent 9858c20 commit 3712ece

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/performance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ This three-way comparison provides clear insights into:
2323
First, you will need to build the binary in release mode. Debug builds are significantly slower:
2424

2525
```bash
26-
cargo build --features unix --release
26+
cargo build --features unix --profile profiling
2727
```
2828

2929
```bash
3030
# Three-way comparison benchmark
3131
hyperfine \
3232
--warmup 3 \
3333
"/usr/bin/ls -R ." \
34-
"./target/release/coreutils.prev ls -R ." \
35-
"./target/release/coreutils ls -R ."
34+
"./target/profiling/coreutils.prev ls -R ." \
35+
"./target/profiling/coreutils ls -R ."
3636

3737
# can be simplified with:
3838
hyperfine \
3939
--warmup 3 \
40-
-L ls /usr/bin/ls,"./target/release/coreutils.prev ls","./target/release/coreutils ls" \
40+
-L ls /usr/bin/ls,"./target/profiling/coreutils.prev ls","./target/profiling/coreutils ls" \
4141
"{ls} -R ."
4242
```
4343

0 commit comments

Comments
 (0)