-
Notifications
You must be signed in to change notification settings - Fork 835
Add common BDN configs #303
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
Conversation
1f483be
to
eb84751
Compare
private static TextWriter _standardOutput; | ||
private static StringBuilder _standardOutputText; | ||
|
||
static partial void BeforeMain(string[] args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
|
||
namespace BenchmarkDotNet.Attributes | ||
{ | ||
public class CoreConfig : ManualConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DefaultConfig
?
namespace BenchmarkDotNet.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly)] | ||
public class AspNetCoreBenchmarkAttribute : Attribute, IConfigSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make these types internal
{ | ||
public static bool UseValidationConfig { get; set; } | ||
|
||
public Type ConfigType { get;set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get only (or remove the ctors)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
namespace BenchmarkDotNet.Attributes | ||
{ | ||
public class CoreConfig : ManualConfig | ||
public class DefaultCoreConfig : ManualConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal
everywhere
92a4744
to
72598ce
Compare
We copy paste the same thing into all the repos, just carry it with
Microsoft.AspNetCore.BenchmarkRunner.Sources
.Validation config does not include
JitOptimizationsValidator.FailOnError
so it won't fail in debug anymore.Also adds support for
BeforeMain
partial method that is useful for debugging sometimes.