Repository navigation
Labels
arch-x64area-System.Formats.Taros-windowsruntime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark
Milestone
Description
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22631 |
| Queue | ViperWindows |
| Baseline | e1979b72ccb5f916649f1d9949ef663254790c25 |
| Compare | 6814be7e81ea875d36976bea750ba5f8325ac58b |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.Formats.Tar.Tests.Perf_TarFile
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 335.81 μs | 564.85 μs | 1.68 | 0.74 | False | ||||
| 413.21 μs | 685.29 μs | 1.66 | 0.69 | False | ||||
| 417.52 μs | 633.31 μs | 1.52 | 0.69 | False | ||||
| 417.37 μs | 604.00 μs | 1.45 | 0.75 | False |
Repro
General Docs link: https://github.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md
git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Formats.Tar.Tests.Perf_TarFile*'Details
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Path
ETL Files
Histogram
JIT Disasms
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Stream
ETL Files
Histogram
JIT Disasms
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Path_Async
ETL Files
Histogram
JIT Disasms
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Stream_Async
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Metadata
Metadata
Assignees
Labels
arch-x64area-System.Formats.Taros-windowsruntime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark




Activity
LoopedBard3 commentedon Jul 7, 2026
🔍 Automated Triage Analysis
Summary: Verified regression in ExtractToDirectory_Path — caused by commit 710da3b ("Solve symlinks destination (#129281)"). 3 tests bisected to related culprit commits. 1 other test(s) found unrelated commits (possible alignment artifacts).
Finding Confidence: 5/5 (analysis accuracy)
Regression Confidence: 5/5 (likelihood of true regression)
Likely Cause: 710da3b3104ff8e0415720d173b1b6c8a2f970dc
🤖 Proposed Next Actions: Known-cause regression — transfer & notify — 0 done, 4 dry-run (rule⚠️ disputes (overconfident-async-finding, bisection-divergence)
R4_known_regression_new— see Full Analysis for the table). · 🦆 Re-analysis:📊 Full Analysis (click to expand)
Summary: 4 tests in System.Formats.Tar.Tests.Perf_TarFile regressed +45–68% as a clear step change, attributed to commit 710da3b ("Solve symlinks destination #129281") which adds per-component symlink resolution during tar extraction. Finding confidence 4/5 (strong historical data, 300 runs, consistent signal), regression confidence 5/5 (surgical change directly in ExtractToDirectory code path, z-scores 3.6–8.9, all 4 variants affected simultaneously).
Issue Overview
Test Analysis
Legend: μ=mean, σ=stddev, n=runs, z=z-score, Thresh%=adaptive threshold
Finding Confidence: 4/5 - Strong historical data (297–300 runs per test), sufficient after-runs (14), all 4 tests clearly above adaptive thresholds. CV is moderate (12–18%) but deltas are 1.7–2.8x the threshold making classification unambiguous.
Candidate Stack Relevance
src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cssrc/libraries/Microsoft.Extensions.Primitives/JTRUEfixConfirmed Regressions
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Path (+68.2%)
FilePathEscapesDirectorycheck on every file extraction that callsResolvePhysicalPath(which walks every directory component callingFileInfo+ResolveLinkTarget) and thenResolveSymlinkfor each component of the relative path. This introduces multiple filesystem stat/readlink calls per extracted entry, explaining the ~68% overhead on a benchmark that extracts multiple files. The commit directly modifiesTarEntry.ExtractRelativeToDirectoryAsyncwhich is the exact code path exercised by the benchmark.System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Stream (+65.9%)
ExtractRelativeToDirectoryAsynccode path with addedFilePathEscapesDirectoryper-entry check.System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Path_Async (+51.7%)
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Stream_Async (+44.7%)
Open Questions
Recommended Actions
FilePathEscapesDirectoryandResolvePhysicalPath— the per-componentFileInfo+ResolveLinkTargetcalls add N filesystem operations per extracted entry where N is the path depth.ResolvePhysicalPath(destinationDirectoryPath)across entries (it's the same directory for all entries in a single extraction) and potentially caching resolved intermediate directories.Bisection Results
Total bisection time: 10145s
Success rate: 4/4 tests
Bisection found commits that are unrelated to the regressed tests. This strongly suggests the performance changes are caused by code alignment, binary layout, or other non-functional factors rather than actual regressions. Consider marking as noise.
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Path
Helix jobs
9eb53818-fbc2-437f-a087-de1ba7aae153158fcbf8-7c57-4215-aea6-64e10d243d40Per-commit measurements
e1979b72ccb5412dcde2fb3f6814be7e81ea710da3b3104fdfdc914e2e45e6428cb16317Bisection details
…[earlier output omitted]
CP: PerfTriageMcp) · owner: "dotnet", repo: "runtime", sha: "710da3b3…
└ {"index":null,"sha":"710da3b3104ff8e0415720d173b1b6c8a2f970dc","abbrevSha":"7...
This is a clear match. The commit
710da3b3104ff8e0415720d173b1b6c8a2f970dctitled "Solve symlinks destination (#129281)" directly modifiesSystem.Formats.Tar/src/System/Formats/Tar/TarEntry.cs, adding symlink resolution logic (ResolvePhysicalPath,ResolveSymlink,FilePathEscapesDirectory) to the extraction path. This adds filesystem operations (symlink resolution, path walking) to every extraction, which explains the ~68% regression inExtractToDirectory_Path.Now let me compile the final results:
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Stream
Helix jobs
03231757-36e4-4ff2-8f32-c5e12f7381b33f665703-4281-429a-adf9-881a6900b317Per-commit measurements
412dcde2fb3f710da3b3104fdfdc914e2e45e6428cb16317Bisection details
…[earlier output omitted]
256.7 μs) to
710da3b3(549.5 μs) is ~293 μs, well above the 2σ noise floor of ~80 μs.Phase 2: Commit Relevance Analysis
● get_single_commit_summary (MCP: PerfTriageMcp) · owner: "dotnet", repo: "runtime", sha: "710da3b3…
└ {"index":null,"sha":"710da3b3104ff8e0415720d173b1b6c8a2f970dc","abbrevSha":"7...
This is clearly the culprit. The commit "Solve symlinks destination (#129281)" directly modifies
System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs, addingFilePathEscapesDirectory,ResolveSymlink, andResolvePhysicalPathmethods that are called during extraction. These methods walk every path component resolving symlinks via filesystem I/O, directly impacting theExtractToDirectory_Streambenchmark.Here are the final results:
System.Formats.Tar.Tests.Perf_TarFile.ExtractToDirectory_Path_Async
Helix jobs
180cdd39-cfbb-452f-af30-30f1d9349687efcbab7b-953d-4ee5-aaa4-e490a873bfbd552ac2c5-5825-4917-9c10-33133be159e12c16935f-2c68-443b-96f7-85b507a95634Per-commit measurements
e1979b72ccb5412dcde2fb3fdfdc914e2e45e6428cb163176585d1cf126b710da3b3104f926aa83f0d25e4cdfeebacd66814be7e81eaBisection details
…[earlier output omitted]
:
HELIX JOBS:
MEASUREMENTS:
ALIGNMENT WARNING:
This bisection found a commit that does not appear related to the regression test.
This suggests the performance change may be due to code alignment, binary layout,
or other non-functional factors rather than a regression in the tested code path.
BISECTION RESULT:
FilePathEscapesDirectorymethod toTarEntry.csthat resolves symlinks at each path component during extraction. This is directly in the hot path ofExtractToDirectory_Stream_Async, adding per-componentFileInfo.ResolveLinkTargetcalls that explain the ~90% regression in extraction time.HELIX JOBS:
MEASUREMENTS:
DrewScoggins commentedon Jul 7, 2026
#129281
Related Regressions:
dotnet-policy-service commentedon Jul 7, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Jul 8, 2026
Tagging subscribers to this area: @dotnet/area-system-formats-tar
See info in area-owners.md if you want to be subscribed.
Improve tar symlink validation during extraction (#135748)