File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/BenchmarkDotNet/Running
tests/BenchmarkDotNet.IntegrationTests Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class BuildPartition
2121 {
2222 // We use an auto-increment global counter instead of Guid to guarantee uniqueness per benchmark run (Guid has a small chance to collide),
2323 // assuming there are fewer than 4 billion build partitions (a safe assumption).
24- private static int s_partitionCounter ;
24+ internal static int s_partitionCounter ;
2525
2626 public BuildPartition ( BenchmarkBuildInfo [ ] benchmarks , IResolver resolver )
2727 {
Original file line number Diff line number Diff line change 1010using BenchmarkDotNet . Jobs ;
1111using BenchmarkDotNet . Loggers ;
1212using BenchmarkDotNet . Reports ;
13+ using BenchmarkDotNet . Running ;
1314using BenchmarkDotNet . Tests . Loggers ;
1415using BenchmarkDotNet . Tests . XUnit ;
1516using BenchmarkDotNet . Toolchains . InProcess . Emit ;
@@ -68,10 +69,11 @@ private void DiffEmit(Summary summary)
6869 if ( ! Portability . RuntimeInformation . IsFullFramework )
6970 return ;
7071
71- var caseName = summary . BenchmarksCases . First ( ) . Job . ToString ( ) ;
72+ var benchmarkCase = summary . BenchmarksCases . First ( ) ;
73+ var caseName = $ "{ benchmarkCase . Descriptor . Type . Assembly . GetName ( ) . Name } -{ benchmarkCase . Job . FolderInfo } ";
7274 NaiveRunnableEmitDiff . RunDiff (
73- $@ "{ caseName } .exe",
74- $@ "{ caseName } Emitted.dll",
75+ $@ "{ caseName } - { BuildPartition . s_partitionCounter } .exe",
76+ $@ "{ caseName } - { BuildPartition . s_partitionCounter - 1 } Emitted.dll",
7577 ConsoleLogger . Default ) ;
7678 }
7779
You can’t perform that action at this time.
0 commit comments