5 ms·
The original performance claim was about https://vimuser.org/cat.c.txt https://vimuser.org/cat.c.txt. Which just does read/write - so it's the same as the "cat
by faho 4y ago
The original performance claim was about https://vimuser.org/cat.c.txt https://vimuser.org/cat.c.txt.
Which just does read/write - so it's the same as the "cat-simple" example, which is the slowest listed.
GNU cat [0] does copy_file_range if it can and falls back to a read/write loop otherwise, so it's unlikely to be much slower (possibly some overhead from argument parsing, but that's just a constant).
So the performance claims are wrong.
[0]: https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/cat.c https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/cat...