Improve benchmark suite for performance work - #1119
Open
lahma wants to merge 1 commit into
Open
Conversation
- Fix SerializationBenchmarks runtime jobs to match the project TFMs and add net8.0 to the benchmark target frameworks - Centralize the config (MemoryDiagnoser) in Program.cs - Add realistic coverage: heterogeneous typed serialize/deserialize/untyped/ roundtrip (SampleModel/ObjectGraphBenchmarks) and an anchor/alias benchmark - Add a steady-state profiling driver for CPU sampling profilers - Remove the unused saltern.yml.gz resource and dead imports
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improves the benchmark project so the performance work can be gated on real, reproducible numbers.
SerializationBenchmarks' mismatched runtime-job attributes ([MediumRunJob(Net80/Net47)], which didn't match the project's target frameworks) and centralizes the config (MemoryDiagnoser) inProgram.cs.SampleModel): typed serialize / deserialize, untyped deserialize, and roundtrip (ObjectGraphBenchmarks), plus an anchor/alias benchmark (AliasBenchmarks).profiledriver mode for CPU sampling profilers.saltern.yml.gzresource and dead imports.Run:
dotnet run -c Release --project YamlDotNet.Benchmark -f net10.0 -- --filter '*'