-
-
Couldn't load subscription status.
- Fork 1k
Improve Benchmark Accuracy #2336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
timcassell wants to merge 27 commits into dotnet:master Choose a base branch from timcassell:fair-types
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Open
Conversation
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
This was referenced Aug 9, 2023
This comment was marked as outdated.
This comment was marked as outdated.
tests/BenchmarkDotNet.IntegrationTests.ManualRunning/ExpectedBenchmarkResultsTests.cs Outdated Show resolved Hide resolved
48266cd to 4abbb1f Compare 213549a to 7080e63 Compare Merged
3e4f122 to e3e774b Compare | Unfortunately, I no longer have an Intel CPU to test this, but I think the new results from this PR should address the issues you had in #2334 @AndreyAkinshin (results look good on my AMD 9800X3D CPU in .Net 8). |
e3e774b to f1a89ed Compare …thods. Count down loops instead of count up. Added IntroSmokeStringBuilder. Added more return type test cases.
Reverted loop methods back to `AggressiveOptimization`. Added `NoInlining` to `__Overhead` to match weaved benchmark method. Updated ExpectedBenchmarkResultsTests.
Update Weaver.
Run task after CoreCompile instead of AfterBuild.
Updated comments.
Don't fail silently. Remove unused property. Embed the weaver into BenchmarkDotNet.Annotations package instead of another package dependency.
| @dotnet/jit-contrib any thoughts on this? |
Fixed formatting.
# Conflicts: # build/common.props
Write to MemoryStream first for efficiency.
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.
Fixes #1133
Fixes #2305
Fixes #1802
Fixes #2530
voidfor a fair baseline for all benchmark return types.Consumeror aNoInliningmethod.MethodImplOptions.NoInliningto benchmark methods.