add tool names

This commit is contained in:
Andrew Gallant 2016-09-18 19:02:34 -04:00
parent a0819978aa
commit bf8094344a

View File

@ -25,15 +25,15 @@ Please remember that a single benchmark is never enough! See my
[blog post on `ripgrep`](http://blog.burntsushi.net/ripgrep/) [blog post on `ripgrep`](http://blog.burntsushi.net/ripgrep/)
for a very detailed comparison with more benchmarks and analysis. for a very detailed comparison with more benchmarks and analysis.
| Command | Line count | Wall clock time | | Tool | Command | Line count | Wall clock time |
| ------- | ---------- | --------------- | | ---- | ------- | ---------- | --------------- |
| `rg -n -w '[A-Z]+_SUSPEND'` | 450 | **0.245s** | | ripgrep | `rg -n -w '[A-Z]+_SUSPEND'` | 450 | **0.245s** |
| `ag -w '[A-Z]+_SUSPEND'` | 450 | 0.753s | | The Silver Searcher | `ag -w '[A-Z]+_SUSPEND'` | 450 | 0.753s |
| `LC_ALL=C git grep -E -n -w '[A-Z]+_SUSPEND'` | 450 | 0.823s | | git grep | `LC_ALL=C git grep -E -n -w '[A-Z]+_SUSPEND'` | 450 | 0.823s |
| `LC_ALL=en_US.UTF-8 git grep -E -n -w '[A-Z]+_SUSPEND'` | 450 | 2.880s | | git grep | `LC_ALL=en_US.UTF-8 git grep -E -n -w '[A-Z]+_SUSPEND'` | 450 | 2.880s |
| `sift --git -n -w '[A-Z]+_SUSPEND'` | 450 | 3.656s | | sift | `sift --git -n -w '[A-Z]+_SUSPEND'` | 450 | 3.656s |
| `pt -w -e '[A-Z]+_SUSPEND'` | 450 | 12.369s | | The Platinum Searcher | `pt -w -e '[A-Z]+_SUSPEND'` | 450 | 12.369s |
| `ack -w '[A-Z]+_SUSPEND'` | 1878 | 16.952s | | ack | `ack -w '[A-Z]+_SUSPEND'` | 1878 | 16.952s |
(Yes, `ack` [has](https://github.com/petdance/ack2/issues/445) a (Yes, `ack` [has](https://github.com/petdance/ack2/issues/445) a
[bug](https://github.com/petdance/ack2/issues/14).) [bug](https://github.com/petdance/ack2/issues/14).)
@ -48,10 +48,10 @@ for a very detailed comparison with more benchmarks and analysis.
hidden and binary files by default. `ripgrep` also implements full support hidden and binary files by default. `ripgrep` also implements full support
for `.gitignore`, where as there are many bugs related to that functionality for `.gitignore`, where as there are many bugs related to that functionality
in The Silver Searcher. in The Silver Searcher.
* `ripgrep` can search specific types files. For example, `rg -tpy foo` limits * `ripgrep` can search specific types of files. For example, `rg -tpy foo`
your search to Python files and `rg -Tjs foo` excludes Javascript files limits your search to Python files and `rg -Tjs foo` excludes Javascript
from your search. `ripgrep` can be taught about new file types with custom files from your search. `ripgrep` can be taught about new file types with
matching rules. custom matching rules.
* `ripgrep` supports many features found in `grep`, such as showing the context * `ripgrep` supports many features found in `grep`, such as showing the context
of search results, searching multiple patterns, highlighting matches with of search results, searching multiple patterns, highlighting matches with
color and full Unicode support. Unlike GNU grep, `ripgrep` stays fast while color and full Unicode support. Unlike GNU grep, `ripgrep` stays fast while