Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/src/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ 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
# Three-way comparison benchmark
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 ."
```

Expand Down
Loading