Skip to content

Commit 3d7d48e

Browse files
authored
Update README.md
1 parent 0e55031 commit 3d7d48e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
A ~slightly~ significantly worse implementation of GNU [wc](https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html#wc-invocation) in go.
55

6-
# Performance
6+
# Performance comparison
77
All the files mentioned below are present in the [`tests/`](https://github.com/theredditbandit/wc/tree/master/tests) directory
88

99
## GNU wc
@@ -23,13 +23,7 @@ All the files mentioned below are present in the [`tests/`](https://github.com/t
2323
| les-miserables.txt | 3.3M | 0.051s | 99% | 0.04s | 0.01s |
2424

2525
## Conclusion
26-
On average , my program is 163 times slower and consumes 26% more CPU to provide performance that is worse than the `wc` tool that ships with most GNU/linux.
27-
28-
# Images
29-
30-
![comparison](https://github.com/theredditbandit/wc/assets/85390033/fc7742c0-acfa-4896-b1b6-2b5945536e0a)
31-
32-
![verbose](https://github.com/theredditbandit/wc/assets/85390033/272f55ec-5587-4684-a30f-d2ed47bb74d1)
26+
On average , my program is **163 times slower** and consumes **26% more CPU** to provide performance that is worse than the `wc` tool that ships with most GNU/linux.
3327

3428
# Strengths
3529
- identical results when compared with GNU `wc` over the test data.
@@ -39,6 +33,16 @@ On average , my program is 163 times slower and consumes 26% more CPU to provide
3933
- cannot read from stdin if no file is passed so `cat somefile.txt | gwc -l` won't work.
4034
- messy codebase
4135
- no automated testing
36+
- slower
37+
38+
39+
# Images
40+
41+
![comparison](https://github.com/theredditbandit/wc/assets/85390033/fc7742c0-acfa-4896-b1b6-2b5945536e0a)
42+
43+
![verbose](https://github.com/theredditbandit/wc/assets/85390033/272f55ec-5587-4684-a30f-d2ed47bb74d1)
44+
45+
4246

4347
# TODO (maybe/eventually/will never get to it)
4448
- [ ] rewrite using simpler techniques.

0 commit comments

Comments
 (0)