I'm just working on tmpfs, but it just should make things faster. Is there anything special about your system's configuration? Yes, for example with -j2 it wasn't ~1 second but 6. įor example, how many matches are printed? Do ripgrep and grep print the same output?ĭo your timings really suggest that multi-threaded ripgrep is slower than single threaded grep? $ echo GREPWHAT=$GREPWHAT RGFLAGS=$RGFLAGS GREPFLAGS=$GREPFLAGS find -maxdepth 1 | xargs -Itime) also should be 'equal'/comparable with rg/grep times on the whole directory. (Sorry, for hiding the names, I'm not sure if I'm allowed to show them.) Rg -debug -hidden -no-ignore file\.php 6.12s user 0.42s system 383% cpu 1.706 totalĭEBUG|grep_regex::literal|grep-regex/src/literal.rs:115: required literal found: 'file'ĭEBUG|globset|globset/src/lib.rs:435: built glob set 0 literals, 0 basenames, 11 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexesĪs I tried to find one-by-one what top-level file (or directory) causes the slowdown, I came to the conclusion: none.