by 1vuio0pswjnm7 · 2y ago · 0 comments
Appears BSD wc ("the macOS program") is much faster than the GNU coreutils wc ("the Linux program").
It certainly illustrates a point about people rewriting wc in newer languages to demonstrate alleged speed against C.
Which wc are they using for comparison.
Pehaps they should use wc2 or wc2o.
I wondered what I was doing wrong and came back to the comments section and found your comment. Ah.
Edit: interestingly, the newline count time was 0.458 with the macOS version and 0.943 with wc2.