Skip to content

Re implement gcperfsim compare#5260

Merged
janvorli merged 7 commits into
dotnet:mainfrom
VincentBu:re-implement-gcperfsim-compare
Jul 20, 2026
Merged

Re implement gcperfsim compare#5260
janvorli merged 7 commits into
dotnet:mainfrom
VincentBu:re-implement-gcperfsim-compare

Conversation

@VincentBu

Copy link
Copy Markdown
Contributor

This PR uses GCTraceMetrics class to represent the result of gcperfsim-compare run.

Copilot AI review requested due to automatic review settings July 13, 2026 08:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR re-implements the gcperfsim compare flow to use the newer GCTraceMetrics/GCTraceMetricComparisonResults model, aligning compare output generation with the analysis pipeline.

Changes:

  • Switch GCPerfSimCompare command to compute comparisons via GCTraceMetricComparison.CompareGCPerfsimResults and emit outputs from GCTraceMetricComparisonResults.
  • Update Markdown/JSON presenters to generate compare-command output from GCTraceMetricComparisonResults (and use regression-oriented deltas).
  • Add a new CompareGCPerfsimResults(baselinePath, comparandPath) helper to produce GCTraceMetricComparisonResult collections from two trace paths.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/GCPerfSim/GCPerfSimCompare.cs Rewires the compare command to the new GCTraceMetricComparison + presenter entrypoints.
src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.Core/Presentation/GCPerfSim/Markdown.cs Replaces ResultItem-based compare markdown with GCTraceMetricComparisonResults-based output.
src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.Core/Presentation/GCPerfSim/Json.cs Replaces legacy categorized JSON generation with serialization of GCTraceMetricComparisonResults.
src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.Core/Analysis/GCTraceMetricComparison.cs Adds CompareGCPerfsimResults to build comparison results directly from two trace files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 13, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

Copilot AI review requested due to automatic review settings July 14, 2026 07:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 20 comments.

Copilot AI review requested due to automatic review settings July 14, 2026 08:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings July 15, 2026 02:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings July 15, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@shimingsg
shimingsg requested a review from janvorli July 15, 2026 08:51
@janvorli
janvorli merged commit 18d9814 into dotnet:main Jul 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants