New ug+ and ugrep+ commands to search pdfs, documents and image metadata when the corresponding tools are installed, includes a runtime check for tool availability; improved --filter
option; speed improvements.
Ugrep runs faster than grep and ripgrep on Apple Silicon M1 and x64 machines for most common searches, such as searching for a few words to tens and hundreds of words in large files. It depends on the available hardware and the complexity of the search patterns.
Experiments on a MacBook PRO M1. The average elapsed time of 100 test runs of ugrep, ripgrep and GNU grep with increasing number of randomly picked words from the enwik8 100MB benchmark file:
Results are for ugrep -on -f words enwik8
to search with line numbers and option -o
to reduce output overhead. The performance of ugrep and ripgrep are more or less comparable when searching more strings and when searching more complex regex patterns. It depends.