A toy project for writing a fast and convenient alternative to
sort | uniq -c | sort -k1 -rn
Install it yourself with cargo:
cargo install --git https://github.com/juliangehring/count
An anecdotal benchmark: Count the top-level domains of the Alexa top 1 million websites. Measured with hyperfine.
make benchmark
Tool | Time [ms] |
---|---|
rusty count (u8) | 35 |
awk | 160 |
unix tools | 3842 |