@@ -4,15 +4,15 @@ Example of text file parsing in Python, Golang, Elixir, Rust and Crystal
44
55Text source: 79.4MB in 30 files
66
7+ - Rust 1.51.0 (parallel) with sorting: 2s, without sorting: 1s
78- Python 3.9.5 (parallel) with sorting: 3.42s, without sorting: 2.47
9+ - Go 1.16.4 (parallel) with sorting: 6.41s, without sorting: 3.75s
810- Rust 1.51.0 with sorting: 7s, without sorting: 5s (no parallelism)
9- - Go 1.16.4 (parallel) with sorting: 7.32s, without sorting: 4.06s
10- - Python 3.9.5 with sorting: 10s, without sorting 8.32s (no multiprocessing)
11- - Crystal 1.0.0 with sorting: 17s, without sorting: 7s (non optimized sort, no parallelism)
11+ - Python 3.9.5 with sorting: 10s, without sorting 8.32s (no parallelism)
12+ - Crystal 1.0.0 with sorting: 13s, without sorting: 7s (no parallelism)
1213- Go 1.16.4 with sorting: 21s, without sorting: 11s (no parallelism)
1314- Elixir 1.12 (parallel) with sorting: 33s (without release build)
1415
15-
1616macOS 11.3.1, MacBook Pro (Retina, 15-inch, Late 2013)
1717
1818``` bash
@@ -25,14 +25,14 @@ target/release/words_extractor_rs
2525
2626cd words_extractor_go
2727make build
28- ./main
28+ GOGC=2000 ./main
2929
3030cd words_extractor_cr
3131crystal build --release src/fast_words_cr.cr -o main
3232./main
3333
3434cd words_extractor_ex
35- mix run " WordsExtractor.run"
35+ mix run -e " WordsExtractor.run"
3636```
3737
3838## Running Python
0 commit comments