From b21a309c3f75d77b7e1c4f21a145e8ff893509e3 Mon Sep 17 00:00:00 2001 From: Michael Debertol Date: Sat, 1 May 2021 21:29:18 +0200 Subject: [PATCH] add a benchmarking example --- src/uu/sort/BENCHMARKING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uu/sort/BENCHMARKING.md b/src/uu/sort/BENCHMARKING.md index 1810e8a4e..17a944b29 100644 --- a/src/uu/sort/BENCHMARKING.md +++ b/src/uu/sort/BENCHMARKING.md @@ -74,6 +74,7 @@ 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"` ## Stdout and stdin performance