mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57:46 +00:00
add a benchmarking example
This commit is contained in:
parent
83554f4475
commit
b21a309c3f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
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`
|
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).
|
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
|
## Stdout and stdin performance
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue