doesntgolf / 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

For the latest results (run on my machine), see the article's performance results section.

Thanks to these contributors for additional language versions:

See other versions on Rosetta Code.

About

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

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

License:MIT License


Languages

Language:Rust 34.9%Language:Go 11.6%Language:C 11.3%Language:Shell 9.2%Language:Forth 8.9%Language:Python 7.0%Language:C++ 4.1%Language:C# 3.1%Language:JavaScript 2.7%Language:D 1.5%Language:OCaml 1.0%Language:Ruby 0.9%Language:Perl 0.8%Language:Nim 0.7%Language:PHP 0.6%Language:Julia 0.5%Language:Swift 0.5%Language:Awk 0.5%Language:Crystal 0.4%