Example of words extracting in Go, Crystal, Rust and Python
Text source: 79.4MB in 30 files
-
Go 1.16.3 (with goroutines) with sorting: 7.55s, without sorting: 4.06s
-
Python 3.9.5 with sorting: 11s, without sorting 10s
-
Go 1.16.3 with sorting: 21s, without sorting: 11s
-
Rust 1.51.0 with sorting: 1m31s, without sorting: 1m10s
-
Crystal 1.0.0 with sorting: 2m55s, without sorting: 27s
macOS 11.3.1, MacBook Pro (Retina, 15-inch, Late 2013)
cd words_extractor_py
python words.py
cd words_extractor_rs
cargo run
cd words_extractor_go
make run
cd words_extractor_cr
crystal run src/fast_words_cr.cr