Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2011 +/- ##
==========================================
+ Coverage 92.24% 92.27% +0.02%
==========================================
Files 117 117
Lines 23731 23731
==========================================
+ Hits 21891 21898 +7
+ Misses 1840 1833 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.00% (25.8 MiB → 25.8 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
⚡️ Hyperfine BenchmarksSummary: 0 regressions, 2 improvements above the 10% threshold. Environment
CLI CommandsBenchmarking basic commands in the main repo:
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base --version |
1.8 ± 0.1 | 1.8 | 2.0 | 1.00 |
prek-head --version |
1.9 ± 0.0 | 1.8 | 2.0 | 1.01 ± 0.04 |
prek list
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base list |
11.3 ± 28.5 | 7.0 | 277.8 | 1.33 ± 3.59 |
prek-head list |
8.5 ± 8.5 | 7.0 | 86.6 | 1.00 |
✅ Performance improvement for list: 24.6700% faster
prek validate-config .pre-commit-config.yaml
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base validate-config .pre-commit-config.yaml |
3.2 ± 3.7 | 2.6 | 28.7 | 1.00 |
prek-head validate-config .pre-commit-config.yaml |
3.4 ± 5.3 | 2.5 | 40.1 | 1.08 ± 2.09 |
prek sample-config
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base sample-config |
2.5 ± 2.6 | 2.0 | 20.4 | 1.11 ± 1.17 |
prek-head sample-config |
2.2 ± 0.3 | 2.1 | 4.1 | 1.00 |
✅ Performance improvement for sample-config: 10.1500% faster
Cold vs Warm Runs
Comparing first run (cold) vs subsequent runs (warm cache):
prek run --all-files (cold - no cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
115.6 ± 3.3 | 110.5 | 120.4 | 1.00 |
prek-head run --all-files |
116.6 ± 3.1 | 110.5 | 119.8 | 1.01 ± 0.04 |
prek run --all-files (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
135.4 ± 65.7 | 112.2 | 400.1 | 1.12 ± 0.59 |
prek-head run --all-files |
120.7 ± 23.9 | 109.9 | 221.0 | 1.00 |
Full Hook Suite
Running the builtin hook suite on the benchmark workspace:
prek run --all-files (full builtin hook suite)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
119.9 ± 32.0 | 108.3 | 338.5 | 1.02 ± 0.28 |
prek-head run --all-files |
117.8 ± 6.3 | 108.7 | 148.9 | 1.00 |
Individual Hook Performance
Benchmarking each hook individually on the test repo:
prek run trailing-whitespace --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run trailing-whitespace --all-files |
77.2 ± 174.0 | 15.8 | 698.4 | 4.74 ± 10.69 |
prek-head run trailing-whitespace --all-files |
16.3 ± 0.4 | 15.7 | 17.0 | 1.00 |
prek run end-of-file-fixer --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run end-of-file-fixer --all-files |
22.2 ± 3.4 | 19.1 | 36.6 | 1.03 ± 0.19 |
prek-head run end-of-file-fixer --all-files |
21.6 ± 2.1 | 18.9 | 25.7 | 1.00 |
prek run check-json --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-json --all-files |
10.6 ± 3.1 | 9.7 | 27.2 | 1.06 ± 0.31 |
prek-head run check-json --all-files |
10.0 ± 0.3 | 9.5 | 10.6 | 1.00 |
prek run check-yaml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-yaml --all-files |
9.4 ± 0.2 | 9.1 | 9.9 | 1.00 |
prek-head run check-yaml --all-files |
26.5 ± 41.2 | 9.1 | 171.9 | 2.81 ± 4.37 |
prek run check-toml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-toml --all-files |
21.7 ± 46.7 | 9.0 | 201.9 | 1.00 |
prek-head run check-toml --all-files |
22.7 ± 41.5 | 9.0 | 201.1 | 1.05 ± 2.95 |
prek run check-xml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-xml --all-files |
18.8 ± 26.0 | 8.9 | 112.5 | 1.54 ± 2.53 |
prek-head run check-xml --all-files |
12.1 ± 10.6 | 9.0 | 63.4 | 1.00 |
prek run detect-private-key --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run detect-private-key --all-files |
17.6 ± 13.0 | 12.4 | 65.3 | 1.24 ± 0.91 |
prek-head run detect-private-key --all-files |
14.2 ± 0.8 | 12.7 | 16.1 | 1.00 |
prek run fix-byte-order-marker --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run fix-byte-order-marker --all-files |
20.5 ± 14.6 | 15.6 | 97.4 | 1.13 ± 0.86 |
prek-head run fix-byte-order-marker --all-files |
18.1 ± 4.7 | 15.7 | 42.1 | 1.00 |
Installation Performance
Benchmarking hook installation (fast path hooks skip Python setup):
prek install-hooks (cold - no cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base install-hooks |
3.8 ± 0.1 | 3.7 | 3.9 | 1.00 |
prek-head install-hooks |
3.8 ± 0.1 | 3.7 | 3.9 | 1.00 ± 0.03 |
prek install-hooks (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base install-hooks |
3.9 ± 0.1 | 3.8 | 4.0 | 1.01 ± 0.04 |
prek-head install-hooks |
3.9 ± 0.1 | 3.8 | 4.0 | 1.00 |
File Filtering/Scoping Performance
Testing different file selection modes:
prek run (staged files only)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run |
40.2 ± 0.6 | 39.0 | 41.2 | 1.00 |
prek-head run |
41.9 ± 4.1 | 39.8 | 58.2 | 1.04 ± 0.10 |
prek run --files '*.json' (specific file type)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --files '*.json' |
12.9 ± 26.2 | 6.9 | 124.3 | 1.00 |
prek-head run --files '*.json' |
18.0 ± 29.2 | 6.9 | 115.7 | 1.40 ± 3.63 |
Workspace Discovery & Initialization
Benchmarking hook discovery and initialization overhead:
prek run --dry-run --all-files (measures init overhead)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --dry-run --all-files |
21.2 ± 27.7 | 10.4 | 115.5 | 1.40 ± 2.61 |
prek-head run --dry-run --all-files |
15.1 ± 20.0 | 10.4 | 100.0 | 1.00 |
Meta Hooks Performance
Benchmarking meta hooks separately:
prek run check-hooks-apply --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-hooks-apply --all-files |
24.9 ± 56.5 | 9.8 | 229.0 | 1.22 ± 3.68 |
prek-head run check-hooks-apply --all-files |
20.4 ± 40.3 | 9.7 | 166.0 | 1.00 |
prek run check-useless-excludes --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-useless-excludes --all-files |
20.3 ± 39.6 | 9.7 | 163.5 | 1.00 |
prek-head run check-useless-excludes --all-files |
22.9 ± 50.5 | 9.7 | 205.4 | 1.13 ± 3.32 |
prek run identity --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run identity --all-files |
8.6 ± 0.1 | 8.4 | 8.7 | 1.00 ± 0.01 |
prek-head run identity --all-files |
8.6 ± 0.1 | 8.5 | 8.7 | 1.00 |
This PR contains the following updates:
4.6.0→4.6.1Release Notes
clap-rs/clap (clap)
v4.6.1Compare Source
Fixes
Configuration
📅 Schedule: (UTC)
* 0-3 * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.