Skip to content

Toy project: An efficient "sort x.txt | uniq -c | sort -k1 -rn" in rust

License

Notifications You must be signed in to change notification settings

juliangehring/count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty counting

A toy project for writing a fast and convenient alternative to

sort | uniq -c | sort -k1 -rn

Installation

Install it yourself with cargo:

cargo install --git https://github.com/juliangehring/count

Benchmarking

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

About

Toy project: An efficient "sort x.txt | uniq -c | sort -k1 -rn" in rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •