Skip to content

Commit 3284686

Browse files
committed
update README
1 parent b716930 commit 3284686

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Example of words extracting in Go, Crystal, Rust and Python
44

55
Text source: 79.4MB in 30 files
66

7-
- Go 1.16.3 (with goroutines) with sorting: 7.55s, without sorting: 4.06s
8-
- Python 3.9.5 with sorting: 11s, without sorting 10s
7+
- Python 3.9.5 (parallel) with sorting: 4.01s, without sorting: 2.47
8+
- Go 1.16.3 (parallel) with sorting: 7.55s, without sorting: 4.06s
9+
- Python 3.9.5 with sorting: 10s, without sorting 8.32s
910
- Go 1.16.3 with sorting: 21s, without sorting: 11s
10-
1111
- Rust 1.51.0 with sorting: 1m31s, without sorting: 1m10s
1212
- Crystal 1.0.0 with sorting: 2m55s, without sorting: 27s
1313

@@ -26,3 +26,21 @@ make run
2626
cd words_extractor_cr
2727
crystal run src/fast_words_cr.cr
2828
```
29+
30+
## Running Python
31+
32+
1. Install the latest Python 3.9.5
33+
2. Create venv and dependencies
34+
35+
```
36+
cd words_extractor_py
37+
python -m venv venv
38+
source venv/bin/activate
39+
pip install -r requirements.txt
40+
```
41+
42+
3. Run the code
43+
44+
```
45+
python words_parallel.py
46+
```

0 commit comments

Comments
 (0)