|
1 | 1 | # scoop-search
|
2 | 2 |
|
3 |
| -[](https://goreportcard.com/report/github.com/shilangyu/scoop-search) |
4 | 3 | [](https://github.com/shilangyu/scoop-search/actions)
|
5 | 4 |
|
6 | 5 | Fast `scoop search` drop-in replacement 🚀
|
@@ -49,23 +48,39 @@ Behaves just like `scoop search` and returns identical output. If any difference
|
49 | 48 |
|
50 | 49 | **Non-goal**: any additional features unavailable in scoop search
|
51 | 50 |
|
| 51 | +## Building |
| 52 | + |
| 53 | +This project uses Zig. Building and running works on all platforms, not only Windows. |
| 54 | + |
| 55 | +Build with (output is stored in `./zig-out/bin`): |
| 56 | + |
| 57 | +```sh |
| 58 | +zig build -Doptimize=ReleaseFast |
| 59 | +``` |
| 60 | + |
| 61 | +Run debug with: |
| 62 | + |
| 63 | +```sh |
| 64 | +zig build run -- searchterm |
| 65 | +``` |
| 66 | + |
52 | 67 | ## Benchmarks
|
53 | 68 |
|
54 |
| -Done with [hyperfine](https://github.com/sharkdp/hyperfine). `scoop-search` is on average 50 times faster. |
| 69 | +Done with [hyperfine](https://github.com/sharkdp/hyperfine). `scoop-search` is on average 350 times faster. |
55 | 70 |
|
56 | 71 | ```sh
|
57 | 72 | ❯ hyperfine --warmup 1 'scoop-search google' 'scoop search google'
|
58 |
| -Benchmark #1: scoop-search google |
59 |
| - Time (mean ± σ): 76.1 ms ± 1.9 ms [User: 0.8 ms, System: 5.8 ms] |
60 |
| - Range (min … max): 73.4 ms … 82.7 ms 37 runs |
| 73 | +Benchmark 1: scoop-search google |
| 74 | + Time (mean ± σ): 60.3 ms ± 3.5 ms [User: 91.2 ms, System: 394.2 ms] |
| 75 | + Range (min … max): 55.1 ms … 73.8 ms 49 runs |
61 | 76 |
|
62 |
| -Benchmark #2: scoop search google |
63 |
| - Time (mean ± σ): 3.910 s ± 0.015 s [User: 1.4 ms, System: 7.9 ms] |
64 |
| - Range (min … max): 3.888 s … 3.928 s 10 runs |
| 77 | +Benchmark 2: scoop search google |
| 78 | + Time (mean ± σ): 21.275 s ± 2.657 s [User: 9.604 s, System: 11.789 s] |
| 79 | + Range (min … max): 19.143 s … 27.035 s 10 runs |
65 | 80 |
|
66 | 81 | Summary
|
67 |
| - 'scoop-search google' ran |
68 |
| - 51.37 ± 1.31 times faster than 'scoop search google' |
| 82 | + scoop-search google ran |
| 83 | + 352.74 ± 48.49 times faster than scoop search google |
69 | 84 | ```
|
70 | 85 |
|
71 | 86 | _ran on AMD Ryzen 5 3600 @ 3.6GHz_
|
0 commit comments