mirror of
https://github.com/crioux/turbo-linecount.git
synced 2024-10-27 17:24:01 +00:00
update readme
This commit is contained in:
parent
82062d4e63
commit
7a2a4a601c
@ -7,7 +7,7 @@ turbo-linecount 1.0 Copyright 2015, Christien Rioux
|
||||
|
||||
Many times, you have to count the number of lines in text file on disk. The typical solution is to use `wc -l` on the command line. `wc -l` uses buffered streams to process the file, which has its advantages, but it is slower than direct memory mapped file access. You can't 'pipe' to
|
||||
|
||||
How much faster is *turbo-linecount*? About 8 times faster than `wc-l` and 5 times faster than the naive Python implementation.
|
||||
How much faster is *turbo-linecount*? About 8 times faster than `wc -l` and 5 times faster than the naive Python implementation.
|
||||
|
||||
To use *turbo-linecount*, just run the command line:
|
||||
|
||||
@ -54,7 +54,7 @@ Cygwin
|
||||
|
||||
### Testing
|
||||
|
||||
Testing cmake against `wc` and `python` can be done with the test scripts. To generate some random test files, run `create_testfiles.sh`, and four test files, one 10MB, one 100MB, one 1GB, and one 10GB file will be created. Feel free to delete these when you're done testing to save space.
|
||||
Testing cmake against `wc -l` and `python` can be done with the test scripts. To generate some random test files, run `create_testfiles.sh`, and four test files, one 10MB, one 100MB, one 1GB, and one 10GB file will be created. Feel free to delete these when you're done testing to save space.
|
||||
|
||||
To run the test, run `compare_testfiles.sh`. This will generate output as such:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user