Code Monkey home page Code Monkey logo

svercl / countwords Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benhoyt/countwords

0.0 0.0 0.0 1.61 MB

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

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

License: MIT License

Awk 0.32% C++ 3.44% Python 5.50% Go 18.93% Shell 13.29% C 7.83% Forth 6.15% Rust 28.38% C# 5.25% Perl 0.48% Ruby 0.64% JavaScript 2.24% Nim 2.32% Julia 0.36% PHP 0.39% Swift 0.35% Crystal 0.26% D 1.27% OCaml 0.87% F# 1.73%

countwords's Introduction

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/

NOTE

I received dozens of pull requests when my count-words article first came out, almost to the point where I couldn't keep up with them. Thanks for all the submissions!

However, I'm not taking new submissions anymore, due mainly to the amount of time I've spent on this already. The major languages are there, and many minor ones. However, I'm still open to receiving feedback -- you can either email me (via the email address on my website) or open an issue here. Thanks!

To run the benchmarks

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 against these versions), see the article's performance results section.

Credits

Thanks to these contributors for additional language versions:

See other versions on Rosetta Code.

countwords's People

Contributors

adevress avatar alemelis avatar ansingh avatar anuragsoni avatar arideden avatar benhoyt avatar bit-twit avatar burntsushi avatar carstenschwede avatar csterritt avatar damuellen avatar daninet avatar ilmanzo avatar jcorbin avatar jftuga avatar jpakkane avatar llimllib avatar lollipopman avatar masterduke17 avatar matu3ba avatar morisil avatar ncm avatar osman-turan avatar pickfire avatar reissbaker avatar svercl avatar themadsens avatar voultapher avatar why-not-try-calmer avatar yuriyostapenko avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.