Skip to content

Commit f5c606c

Browse files
authored
Update README.md
1 parent 02cc290 commit f5c606c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# homemade_yes
22
High-performance reimplementation of GNU yes, but made at home in Rust.
33

4-
You can benchmark it by running `./homemade_yes | pv -N "Homemade yes" -r -t > /dev/null`.
4+
As I am not very good at writing in Rust, I probably made a lot of subtle mistakes; please submit a PR if you find anything!
55

6-
On my build machine, `homemade_yes` can obtain a throughput of about ~3.5 gigabytes per second, which is comparable to GNU yes (v9.5). I'm pretty sure that my hardware is bottlenecking performance at this point, so better throughputs might be possible with some hardware tweaking.
6+
The entire codebase is 33 lines long, excluding comments and empty lines. Compare this to the [uutils implementation](https://github.com/uutils/coreutils/blob/main/src/uu/yes/src/yes.rs), which has ~161 lines of actual code.
7+
8+
## Benchmarking
9+
10+
You can benchmark `homemade_yes` by running `./homemade_yes | pv -N "Homemade yes" -r -t > /dev/null`.
11+
12+
On my build machine, it can obtain a throughput of about ~3.5 gigabytes per second, which is comparable to GNU yes (v9.5). On a nice laptop from the past ~5 years and Xubuntu 25.04, I was able to achieve ~4.2 gigabytes per second, whereas GNU yes usually hovered around ~4.0 gigabytes per second.

0 commit comments

Comments
 (0)