mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
performance.md: recommend to build with the right profile (#7930)
* performance.md: recommend to build with the right profile * doc: also update the paths
This commit is contained in:
parent
9858c209c3
commit
3712ece70b
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
First, you will need to build the binary in release mode. Debug builds are significantly slower:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo build --features unix --release
|
cargo build --features unix --profile profiling
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -31,13 +31,13 @@ cargo build --features unix --release
|
||||||
hyperfine \
|
hyperfine \
|
||||||
--warmup 3 \
|
--warmup 3 \
|
||||||
"/usr/bin/ls -R ." \
|
"/usr/bin/ls -R ." \
|
||||||
"./target/release/coreutils.prev ls -R ." \
|
"./target/profiling/coreutils.prev ls -R ." \
|
||||||
"./target/release/coreutils ls -R ."
|
"./target/profiling/coreutils ls -R ."
|
||||||
|
|
||||||
# can be simplified with:
|
# can be simplified with:
|
||||||
hyperfine \
|
hyperfine \
|
||||||
--warmup 3 \
|
--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 ."
|
"{ls} -R ."
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue