Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2015 +/- ##
=======================================
Coverage 92.24% 92.24%
=======================================
Files 117 117
Lines 23731 23731
=======================================
Hits 21891 21891
Misses 1840 1840 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.78% (25.8 MiB → 26.0 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
⚡️ Hyperfine BenchmarksSummary: 0 regressions, 1 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.6 ± 0.1 | 2.4 | 2.9 | 1.04 ± 0.07 |
prek-head --version |
2.5 ± 0.1 | 2.3 | 3.2 | 1.00 |
prek list
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base list |
10.4 ± 0.2 | 9.8 | 10.8 | 1.00 ± 0.03 |
prek-head list |
10.3 ± 0.2 | 9.8 | 10.9 | 1.00 |
prek validate-config .pre-commit-config.yaml
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base validate-config .pre-commit-config.yaml |
3.7 ± 0.1 | 3.6 | 3.9 | 1.02 ± 0.04 |
prek-head validate-config .pre-commit-config.yaml |
3.7 ± 0.1 | 3.4 | 4.1 | 1.00 |
prek sample-config
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base sample-config |
4.8 ± 12.6 | 2.8 | 91.6 | 1.67 ± 4.36 |
prek-head sample-config |
2.9 ± 0.0 | 2.8 | 3.0 | 1.00 |
✅ Performance improvement for sample-config: 40.1800% 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 |
156.7 ± 3.7 | 150.1 | 161.6 | 1.00 ± 0.03 |
prek-head run --all-files |
156.2 ± 3.2 | 151.6 | 161.8 | 1.00 |
prek run --all-files (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
156.5 ± 4.3 | 149.5 | 163.1 | 1.02 ± 0.04 |
prek-head run --all-files |
153.3 ± 3.5 | 147.3 | 157.6 | 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 |
151.9 ± 4.1 | 145.7 | 160.2 | 1.00 |
prek-head run --all-files |
155.1 ± 8.0 | 143.2 | 195.5 | 1.02 ± 0.06 |
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 |
22.3 ± 0.6 | 21.3 | 23.7 | 1.02 ± 0.03 |
prek-head run trailing-whitespace --all-files |
21.9 ± 0.5 | 21.1 | 23.1 | 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.8 ± 2.6 | 24.4 | 34.5 | 1.01 ± 0.12 |
prek-head run end-of-file-fixer --all-files |
28.5 ± 2.3 | 25.5 | 35.6 | 1.00 |
prek run check-json --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-json --all-files |
13.3 ± 0.9 | 12.2 | 16.7 | 1.05 ± 0.09 |
prek-head run check-json --all-files |
12.6 ± 0.7 | 12.0 | 16.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.4 ± 0.6 | 11.8 | 14.9 | 1.04 ± 0.06 |
prek-head run check-yaml --all-files |
11.9 ± 0.4 | 11.4 | 12.8 | 1.00 |
prek run check-toml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-toml --all-files |
11.9 ± 0.2 | 11.4 | 12.5 | 1.00 |
prek-head run check-toml --all-files |
12.2 ± 0.3 | 11.7 | 12.8 | 1.03 ± 0.03 |
prek run check-xml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-xml --all-files |
12.3 ± 0.3 | 11.8 | 13.0 | 1.00 |
prek-head run check-xml --all-files |
12.6 ± 0.3 | 11.9 | 13.2 | 1.02 ± 0.04 |
prek run detect-private-key --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run detect-private-key --all-files |
19.1 ± 1.3 | 16.9 | 21.8 | 1.00 ± 0.10 |
prek-head run detect-private-key --all-files |
19.0 ± 1.3 | 16.9 | 21.4 | 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 |
24.1 ± 2.1 | 21.0 | 27.6 | 1.03 ± 0.12 |
prek-head run fix-byte-order-marker --all-files |
23.4 ± 1.8 | 20.6 | 26.5 | 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 |
5.2 ± 0.2 | 5.0 | 5.4 | 1.04 ± 0.04 |
prek-head install-hooks |
5.0 ± 0.1 | 4.9 | 5.1 | 1.00 |
prek install-hooks (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base install-hooks |
5.0 ± 0.1 | 4.8 | 5.1 | 1.00 |
prek-head install-hooks |
5.0 ± 0.1 | 4.9 | 5.1 | 1.00 ± 0.03 |
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 |
52.2 ± 0.9 | 50.9 | 53.7 | 1.00 |
prek-head run |
53.0 ± 1.1 | 51.3 | 55.0 | 1.01 ± 0.03 |
prek run --files '*.json' (specific file type)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --files '*.json' |
9.7 ± 0.3 | 9.3 | 10.4 | 1.02 ± 0.03 |
prek-head run --files '*.json' |
9.5 ± 0.2 | 9.2 | 9.9 | 1.00 |
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.2 ± 0.2 | 13.7 | 14.9 | 1.00 |
prek-head run --dry-run --all-files |
14.4 ± 0.2 | 14.0 | 14.9 | 1.01 ± 0.02 |
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 |
13.3 ± 0.2 | 13.0 | 13.7 | 1.02 ± 0.02 |
prek-head run check-hooks-apply --all-files |
13.1 ± 0.1 | 13.0 | 13.3 | 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.1 ± 0.2 | 12.9 | 13.4 | 1.00 |
prek-head run check-useless-excludes --all-files |
13.2 ± 0.2 | 12.9 | 13.5 | 1.01 ± 0.02 |
prek run identity --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run identity --all-files |
12.1 ± 1.3 | 11.5 | 16.5 | 1.06 ± 0.12 |
prek-head run identity --all-files |
11.5 ± 0.1 | 11.2 | 11.7 | 1.00 |
This PR contains the following updates:
1.11.0→1.12.0Release Notes
rayon-rs/rayon (rayon)
v1.12.0Compare Source
Range<char>when the end is 0xE000, just past thesurrogate boundary, which was unsafely producing invalid
charvalues.ParallelSlice::par_array_windowsworks likepar_windowsbut with a constant length, producing
&[T; N]items.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.