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

add a benchmarking example

This commit is contained in:
Michael Debertol 2021-05-01 21:29:18 +02:00
parent 83554f4475
commit b21a309c3f

View file

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