Commit dda01c6
committed
Switch from pre-commit to prek
Following the [benchmarks from Hugo van
Kemenade](https://hugovk.dev/blog/2025/ready-prek-go/), we get about 3×
faster with prek:
| | pre-commit | prek | Ratio |
| --------------- | ---------- | --------- | ----- |
| run --all-files | 4m52.503s | 1m26.718s | 3.373 |
| install-hooks | 3m31.002s | 1m6.608s | 3.168 |
| hyperfine | 176.214 | 58.500 | 3.01 |
with hyperfine results of:
```
Benchmark 1: prek install-hooks
Time (mean ± σ): 58.500 s ± 15.029 s [User: 8.485 s, System: 3.138 s]
Range (min … max): 30.766 s … 76.617 s 10 runs
Benchmark 2: pre-commit install-hooks
Time (mean ± σ): 176.214 s ± 11.544 s [User: 31.003 s, System: 5.127 s]
Range (min … max): 161.969 s … 198.271 s 10 runs
Summary
prek install-hooks ran
3.01 ± 0.80 times faster than pre-commit install-hooks
```1 parent 607d2c3 commit dda01c6
4 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
| 336 | + | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments