Skip to content

Comments

Add NuGet version comparison benchmark job#93

Merged
prozolic merged 3 commits intomainfrom
benchmark
Jan 29, 2026
Merged

Add NuGet version comparison benchmark job#93
prozolic merged 3 commits intomainfrom
benchmark

Conversation

@prozolic
Copy link
Owner

@prozolic prozolic commented Jan 29, 2026

This PR add a new benchmark job with custom build configuration "NuGetCsToml" to enable performance comparison between the current source and the published NuGet package version.

Copilot AI review requested due to automatic review settings January 29, 2026 13:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a BenchmarkDotNet job that can run benchmarks against the published NuGet package (instead of the local source projects) by switching references via a custom build configuration.

Changes:

  • Simplifies benchmark startup to always use BenchmarkConfig directly.
  • Extends BenchmarkConfig to include a new “NuGet package” job using a custom build configuration.
  • Updates the benchmark .csproj to switch between ProjectReference (local source) and PackageReference (published NuGet) based on configuration.

Reviewed changes

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

File Description
sandbox/Benchmark/Program.cs Stops calling the removed AddTargetFramework() and uses BenchmarkConfig directly.
sandbox/Benchmark/Config/BenchmarkConfig.cs Moves framework job setup into the constructor and adds a NuGet-comparison job using WithCustomBuildConfiguration(...).
sandbox/Benchmark/Benchmark.csproj Adds conditional package vs project references depending on $(Configuration) (NuGet vs local source).

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

prozolic and others added 2 commits January 29, 2026 22:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

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 3 out of 3 changed files in this pull request and generated 2 comments.


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

@prozolic prozolic merged commit e19ae02 into main Jan 29, 2026
7 checks passed
@prozolic prozolic deleted the benchmark branch February 13, 2026 13:49
@prozolic prozolic mentioned this pull request Feb 20, 2026
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.

1 participant