1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 13:37:48 +00:00

Update src/uu/sort/BENCHMARKING.md

Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
This commit is contained in:
Michael Debertol 2021-05-01 21:38:36 +02:00 committed by GitHub
parent b21a309c3f
commit 484558e37d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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