Crates.io | lookfor |
lib.rs | lookfor |
version | 1.1.2 |
source | src |
created_at | 2024-10-27 18:15:21.751067 |
updated_at | 2024-11-14 23:53:01.123902 |
description | Cross-Platform file finder |
homepage | https://github.com/DarkCeptor44/lookfor |
repository | https://github.com/DarkCeptor44/lookfor |
max_upload_size | |
id | 1424869 |
size | 135,802 |
A cross-platform command line utility to find and highlight files that match a pattern.
cargo install lookfor
cargo install --git https://github.com/DarkCeptor44/lookfor
cargo install --path .
$ lookfor -h
Cross-Platform file finder
Usage: lookfor [OPTIONS] <PATTERN>
Arguments:
<PATTERN> Pattern to search for
Options:
--in <PATH> Path to search in [default: .]
--color <COLOR> Color of the highlighted text (off for no color) [default: blue]
-I, --case-sensitive Case sensitive search
-h, --help Print help
-V, --version Print version
The benchmarks were performed on different machines at the root of the repository after running both cargo build
and cargo build -r
, to find anything with clap
in the target directory.
AMD64, 32GB RAM, Ryzen 7 3800X
ARM64, 1GB RAM, Orange Pi Zero2
Ran on Machine A (Windows 10):
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
lookfor clap |
81.4 ± 1.0 | 80.2 | 84.8 | 1.00 |
dir /s /b *clap* |
98.8 ± 1.3 | 96.2 | 100.9 | 1.21 ± 0.02 |
findstr /s /m /c:clap * |
1096.1 ± 7.0 | 1090.4 | 1115.1 | 13.46 ± 0.19 |
Ran on Machine A (WSL2 Debian 12):
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
lookfor clap |
167.4 ± 7.7 | 160.6 | 187.3 | 1.00 |
find . -iname "*clap*" |
271.9 ± 13.3 | 250.0 | 283.1 | 1.62 ± 0.11 |
Ran on Machine B (Debian 12):
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
lookfor clap |
24.1 ± 0.3 | 23.5 | 24.9 | 1.17 ± 0.03 |
find . -iname "*clap*" |
20.6 ± 0.4 | 19.9 | 22.0 | 1.00 |
This project is licensed under the terms of the GNU General Public License v3.0.