speedgrep 1.1.13

a simple grep tool
speedgrep-1.1.13 is not a library.
Visit the last successful build: speedgrep-1.3.3

speedgrep

A no‑nonsense, literal‑string grep clone built in Rust, specialised for literal substring search of a file benchmark

⬇️ Download

cargo install speedgrep

📝 To-Do

  • Increase speed and efficiency
  • Add nicer colours without sacrificing performance
  • Make a cleaner output

✨ Features

  • 🧠 Simple syntax — just speedgrep <file> <string>
  • ⚡ Ridiculously fast
  • 🔢 Shows line numbers
  • 📦 Tiny binary

🧪 The Trick?

Why is it 20x faster? Because it avoids the "Regex Tax" and respects the hardware:

  • 🚫 NO REGEX: Pure literal substring matching.
  • 📦 Syscall Batching: Buffers 64 matches into a single to minimize the ammount of syscalls
  • ♻️ Buffer Reuse: Reuses a single string
  • Single Process: Utilizes a single process to minimize overhead

🤝 Contributing

If YOU! Want to help, PR are welcome!
Please first read the contribution guidelines for speedgrep
Jump in here:

Repo
Repo

🚀 We Beat Ripgrep

On a 1,000,000‑line test file:

  • ⚡ speedgrep: 361ms
  • 🦀 ripgrep: 7.4 seconds

Note: Speedgrep is a speed demon, while ripgrep is a regex engine.

Minimalism wins.