@@ -29,6 +29,13 @@ public static Summary Run(Type type, IConfig config = null, string[] args = null
29
29
using ( DirtyAssemblyResolveHelper . Create ( ) )
30
30
return RunWithExceptionHandling ( ( ) => RunWithDirtyAssemblyResolveHelper ( type , config , args ) ) ;
31
31
}
32
+
33
+ [ PublicAPI ]
34
+ public static Summary [ ] Run ( Type [ ] types , IConfig config = null , string [ ] args = null )
35
+ {
36
+ using ( DirtyAssemblyResolveHelper . Create ( ) )
37
+ return RunWithExceptionHandling ( ( ) => RunWithDirtyAssemblyResolveHelper ( types , config , args ) ) ;
38
+ }
32
39
33
40
[ PublicAPI ]
34
41
public static Summary Run ( Type type , MethodInfo [ ] methods , IConfig config = null )
@@ -88,6 +95,12 @@ private static Summary[] RunWithDirtyAssemblyResolveHelper(Assembly assembly, IC
88
95
=> args == null
89
96
? BenchmarkRunnerClean . Run ( assembly . GetRunnableBenchmarks ( ) . Select ( type => BenchmarkConverter . TypeToBenchmarks ( type , config ) ) . ToArray ( ) )
90
97
: new BenchmarkSwitcher ( assembly ) . RunWithDirtyAssemblyResolveHelper ( args , config , false ) . ToArray ( ) ;
98
+
99
+ [ MethodImpl ( MethodImplOptions . NoInlining ) ]
100
+ private static Summary [ ] RunWithDirtyAssemblyResolveHelper ( Type [ ] types , IConfig config , string [ ] args )
101
+ => args == null
102
+ ? BenchmarkRunnerClean . Run ( types . Select ( type => BenchmarkConverter . TypeToBenchmarks ( type , config ) ) . ToArray ( ) )
103
+ : new BenchmarkSwitcher ( types ) . RunWithDirtyAssemblyResolveHelper ( args , config , false ) . ToArray ( ) ;
91
104
92
105
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
93
106
private static Summary [ ] RunWithDirtyAssemblyResolveHelper ( BenchmarkRunInfo [ ] benchmarkRunInfos )
0 commit comments