File tree Expand file tree Collapse file tree
src/insights/FastEnum.Benchmarks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4+ <TargetFrameworks >net10.0</TargetFrameworks >
45 <OutputType >Exe</OutputType >
56 <RootNamespace >FastEnumUtility.Benchmarks</RootNamespace >
67 </PropertyGroup >
Original file line number Diff line number Diff line change @@ -10,19 +10,28 @@ namespace FastEnumUtility.Benchmarks.Internals;
1010internal static class BenchmarkConfig
1111{
1212 public static IConfig ForDefault ( )
13- {
14- return ManualConfig . CreateMinimumViable ( )
15- . AddExporter ( MarkdownExporter . GitHub )
16- . AddDiagnoser ( MemoryDiagnoser . Default )
17- . AddJob ( Job . Default ) ;
18- }
13+ => CreateSharedConfig ( Job . Default ) ;
1914
2015
2116 public static IConfig ForShortRun ( )
17+ => CreateSharedConfig ( Job . ShortRun ) ;
18+
19+
20+ #region Helpers
21+ private static ManualConfig CreateSharedConfig ( Job job )
2222 {
23- return ManualConfig . CreateMinimumViable ( )
23+ return ManualConfig
24+ . CreateMinimumViable ( )
2425 . AddExporter ( MarkdownExporter . GitHub )
2526 . AddDiagnoser ( MemoryDiagnoser . Default )
26- . AddJob ( Job . ShortRun ) ;
27+ . AddDiagnoser ( new DisassemblyDiagnoser ( new
28+ (
29+ maxDepth : 3 ,
30+ printSource : true ,
31+ exportGithubMarkdown : true ,
32+ exportCombinedDisassemblyReport : true
33+ ) ) )
34+ . AddJob ( job ) ;
2735 }
36+ #endregion
2837}
You can’t perform that action at this time.
0 commit comments