Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kiwec
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
kiwec
7y ago
For some reason, wc is even slower with LANG=C. cat words.txt | time wc -w 13018291 0.76 user 0.01 system 0:00.78 elapsed That's on the default wc build of void linux, and not in a proper benchmark environment, but tha
2.
▲
by
kiwec
7y ago
After editing my code to use EOF == 0, I get : 19.55 user 21.49 system 0:41.13 elapsed However, you're using 8-bit cells, so the resulting word count is incorrect. In case you're wondering, the file was generated with :