jpakkane / countwords

Playing with counting word frequencies (and performance) in various languages.

Home Page:https://benhoyt.com/writings/count-words/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playing with counting word frequencies (and the performance thereof) in various languages. See the full article for context and background: https://benhoyt.com/writings/count-words/

To run the tests and benchmarks (you'll need Go, Rust, Python 3, AWK and perhaps other tools installed). Only tested on Linux:

./test.sh
./benchmark.py

Kudos and credits to Andrew Gallant for the Rust versions.

About

Playing with counting word frequencies (and performance) in various languages.

https://benhoyt.com/writings/count-words/

License:MIT License


Languages

Language:Rust 41.3%Language:Go 13.7%Language:C 13.3%Language:Forth 10.5%Language:Shell 7.0%Language:Python 6.5%Language:C++ 5.5%Language:C# 1.5%Language:Awk 0.5%