From 484558e37dbc95ba583a4210205164ef5521655b Mon Sep 17 00:00:00 2001 From: Michael Debertol Date: Sat, 1 May 2021 21:38:36 +0200 Subject: [PATCH] Update src/uu/sort/BENCHMARKING.md Co-authored-by: Sylvestre Ledru --- src/uu/sort/BENCHMARKING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uu/sort/BENCHMARKING.md b/src/uu/sort/BENCHMARKING.md index 17a944b29..71c331105 100644 --- a/src/uu/sort/BENCHMARKING.md +++ b/src/uu/sort/BENCHMARKING.md @@ -74,7 +74,8 @@ Run `cargo build --release` before benchmarking after you make a change! Try running commands with the `-S` option set to an amount of memory to be used, such as `1M`. Additionally, you could try sorting huge files (ideally multiple Gigabytes) with `-S`. Creating such a large file can be achieved by running `cat shuffled_wordlist.txt | sort -R >> shuffled_wordlist.txt` multiple times (this will add the contents of `shuffled_wordlist.txt` to itself). -Example: Run `hyperfine "target/release/coreutils sort shuffled_wordlist.txt -S 1M"` +Example: Run `hyperfine './target/release/coreutils sort shuffled_wordlist.txt -S 1M' 'sort shuffled_wordlist.txt -S 1M'` +` ## Stdout and stdin performance