Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2016 +/- ##
==========================================
+ Coverage 92.24% 92.27% +0.02%
==========================================
Files 117 117
Lines 23731 23731
==========================================
+ Hits 21891 21897 +6
+ Misses 1840 1834 -6 ☔ 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, 0 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 |
2.4 ± 0.1 | 2.3 | 2.6 | 1.00 ± 0.05 |
prek-head --version |
2.4 ± 0.1 | 2.3 | 2.8 | 1.00 |
prek list
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base list |
9.3 ± 0.1 | 9.0 | 10.1 | 1.00 |
prek-head list |
9.3 ± 0.1 | 9.1 | 9.6 | 1.00 ± 0.02 |
prek validate-config .pre-commit-config.yaml
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base validate-config .pre-commit-config.yaml |
3.4 ± 0.1 | 3.3 | 3.5 | 1.00 |
prek-head validate-config .pre-commit-config.yaml |
3.4 ± 0.0 | 3.2 | 3.5 | 1.00 ± 0.02 |
prek sample-config
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base sample-config |
2.8 ± 0.1 | 2.7 | 2.9 | 1.01 ± 0.03 |
prek-head sample-config |
2.7 ± 0.0 | 2.6 | 2.8 | 1.00 |
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 |
150.5 ± 7.0 | 143.2 | 168.1 | 1.03 ± 0.05 |
prek-head run --all-files |
146.6 ± 2.6 | 142.5 | 151.5 | 1.00 |
prek run --all-files (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
146.2 ± 3.7 | 140.0 | 152.4 | 1.01 ± 0.03 |
prek-head run --all-files |
145.0 ± 3.3 | 140.1 | 150.4 | 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 |
148.6 ± 3.8 | 142.5 | 159.6 | 1.00 |
prek-head run --all-files |
151.2 ± 6.3 | 143.1 | 179.3 | 1.02 ± 0.05 |
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 |
21.6 ± 1.4 | 20.1 | 27.4 | 1.00 ± 0.09 |
prek-head run trailing-whitespace --all-files |
21.6 ± 1.4 | 20.3 | 28.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 |
28.1 ± 2.1 | 24.2 | 31.9 | 1.03 ± 0.11 |
prek-head run end-of-file-fixer --all-files |
27.2 ± 1.9 | 24.5 | 32.1 | 1.00 |
prek run check-json --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-json --all-files |
13.1 ± 0.4 | 12.6 | 14.4 | 1.06 ± 0.04 |
prek-head run check-json --all-files |
12.4 ± 0.3 | 11.9 | 13.2 | 1.00 |
prek run check-yaml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-yaml --all-files |
12.3 ± 0.3 | 11.8 | 13.3 | 1.01 ± 0.04 |
prek-head run check-yaml --all-files |
12.2 ± 0.3 | 11.8 | 13.0 | 1.00 |
prek run check-toml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-toml --all-files |
12.2 ± 0.3 | 11.7 | 12.7 | 1.01 ± 0.03 |
prek-head run check-toml --all-files |
12.1 ± 0.3 | 11.7 | 12.8 | 1.00 |
prek run check-xml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-xml --all-files |
11.9 ± 0.3 | 11.4 | 12.8 | 1.00 |
prek-head run check-xml --all-files |
12.0 ± 0.3 | 11.5 | 12.5 | 1.01 ± 0.03 |
prek run detect-private-key --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run detect-private-key --all-files |
18.3 ± 1.3 | 16.6 | 20.6 | 1.02 ± 0.10 |
prek-head run detect-private-key --all-files |
17.9 ± 1.4 | 15.6 | 21.5 | 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 |
22.6 ± 1.9 | 20.1 | 26.9 | 1.00 |
prek-head run fix-byte-order-marker --all-files |
22.7 ± 1.8 | 19.8 | 25.3 | 1.00 ± 0.12 |
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 |
5.0 ± 0.1 | 4.9 | 5.1 | 1.01 ± 0.02 |
prek-head install-hooks |
4.9 ± 0.0 | 4.9 | 5.0 | 1.00 |
prek install-hooks (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base install-hooks |
5.0 ± 0.0 | 4.9 | 5.0 | 1.00 |
prek-head install-hooks |
5.0 ± 0.0 | 4.9 | 5.0 | 1.00 ± 0.01 |
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 |
53.1 ± 1.2 | 51.0 | 54.8 | 1.02 ± 0.03 |
prek-head run |
52.0 ± 0.8 | 50.8 | 53.7 | 1.00 |
prek run --files '*.json' (specific file type)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --files '*.json' |
9.2 ± 0.1 | 8.9 | 9.5 | 1.00 |
prek-head run --files '*.json' |
9.3 ± 0.2 | 9.1 | 9.9 | 1.01 ± 0.03 |
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 |
14.0 ± 0.2 | 13.7 | 14.4 | 1.01 ± 0.02 |
prek-head run --dry-run --all-files |
13.9 ± 0.2 | 13.6 | 14.4 | 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 |
14.8 ± 0.3 | 14.5 | 15.6 | 1.04 ± 0.05 |
prek-head run check-hooks-apply --all-files |
14.2 ± 0.7 | 13.0 | 15.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 |
13.2 ± 0.2 | 12.8 | 13.5 | 1.01 ± 0.03 |
prek-head run check-useless-excludes --all-files |
13.0 ± 0.3 | 12.4 | 13.4 | 1.00 |
prek run identity --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run identity --all-files |
11.3 ± 0.2 | 11.0 | 11.7 | 1.02 ± 0.02 |
prek-head run identity --all-files |
11.0 ± 0.1 | 10.9 | 11.2 | 1.00 |
This PR contains the following updates:
1.51.1→1.52.1Release Notes
tokio-rs/tokio (tokio)
v1.52.1: Tokio v1.52.1Compare Source
1.52.1 (April 16th, 2026)
Fixed
spawn_blockingto hang (#8057)v1.52.0: Tokio v1.52.0Compare Source
1.52.0 (April 14th, 2026)
Added
AioSource::register_borrowedfor I/O safety support (#7992)try_iofunction tounix::pipesender and receiver types (#8030)Added (unstable)
Builder::enable_eager_driver_handoffsetting enable eager hand off of the I/O and time drivers before polling tasks (#8010)trace_with()for customized task dumps (#8025)impl FnMut()intrace_withinstead of justfn()(#8040)io_uringinAsyncReadforFile(#7907)Changed
spawn_blockingscalability with sharded queue (#7757)compare_exchange_weak()in worker queue (#8028)Fixed
Documented
oneshot::Sender::senddocs (#8026)sync::watch(#8035)ConnectionRefusederrors with UDP sockets (#7870)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.