|
|
|
|
|
by 3eb7988a1663
386 days ago
|
|
That reddit thread has some amazing benchmarks. The GNU-yes $ yes | pv > /dev/null
... [10.2GiB/s] ...
The way I (not a C programmer) would have written it void main() {
while(write(1, "y\n", 2)); // 1 is stdout
}
$ gcc yes.c -o yes
$ ./yes | pv > /dev/null
... [6.21 MiB/s] ...
|
|