gdm257 / scoop-search

Fast `scoop search` drop-in replacement 🚀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scoop-search

Fast scoop search drop-in replacement 🚀

Installation

scoop install scoop-search

Hook

Instead of using scoop-search.exe <term> you can setup a hook that will run scoop-search.exe whenever you use native scoop search

Add this to your Powershell profile (usually located at $PROFILE)

Invoke-Expression (&scoop-search --hook)

Features

Behaves just like scoop search and returns identical output. If any differences are found please open an issue.

Non-goal: any additional features unavailable in scoop search

Benchmarks

Done with hyperfine. scoop-search is on average 50 times faster.

❯ hyperfine --warmup 1 'scoop-search google' 'scoop search google'
Benchmark #1: scoop-search google
  Time (mean ± σ):      76.1 ms ±   1.9 ms    [User: 0.8 ms, System: 5.8 ms]
  Range (min … max):    73.4 ms …  82.7 ms    37 runs

Benchmark #2: scoop search google
  Time (mean ± σ):      3.910 s ±  0.015 s    [User: 1.4 ms, System: 7.9 ms]
  Range (min … max):    3.888 s …  3.928 s    10 runs

Summary
  'scoop-search google' ran
   51.37 ± 1.31 times faster than 'scoop search google'

ran on AMD Ryzen 5 3600 @ 3.6GHz

About

Fast `scoop search` drop-in replacement 🚀

License:MIT License


Languages

Language:Go 92.5%Language:PowerShell 7.5%