private static Summary RunWithDirtyAssemblyResolveHelper(Type type, MethodInfo[] methods, IConfig config = null) => BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.MethodsToBenchmarks(type, methods, config) }).Single();
private static Summary RunSourceWithDirtyAssemblyResolveHelper(string source, IConfig config = null) => RuntimeInformation.IsFullFramework ? BenchmarkRunnerClean.Run(BenchmarkConverter.SourceToBenchmarks(source, config)).Single() : throw new InvalidBenchmarkDeclarationException("Supported only on Full .NET Framework");
private static Summary RunWithDirtyAssemblyResolveHelper(Type type, IConfig config, string[] args) => (args == null ? BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.TypeToBenchmarks(type, config) }) : new BenchmarkSwitcher(new[] { type }).RunWithDirtyAssemblyResolveHelper(args, config, false)) .Single();
private static Summary[] RunWithDirtyAssemblyResolveHelper(BenchmarkRunInfo[] benchmarkRunInfos) => BenchmarkRunnerClean.Run(benchmarkRunInfos);
private static Summary[] RunWithDirtyAssemblyResolveHelper(Type[] types, IConfig config, string[] args) => args == null ? BenchmarkRunnerClean.Run(types.Select(type => BenchmarkConverter.TypeToBenchmarks(type, config)).ToArray()) : new BenchmarkSwitcher(types).RunWithDirtyAssemblyResolveHelper(args, config, false).ToArray();
private static Summary RunUrlWithDirtyAssemblyResolveHelper(string url, IConfig config = null) => RuntimeInformation.IsFullFramework ? BenchmarkRunnerClean.Run(BenchmarkConverter.UrlToBenchmarks(url, config)).Single() : throw new NotSupportedException("Supported only on Full .NET Framework");
private static Summary[] RunWithDirtyAssemblyResolveHelper(Assembly assembly, IConfig config = null) => BenchmarkRunnerClean.Run(assembly.GetRunnableBenchmarks().Select(type => BenchmarkConverter.TypeToBenchmarks(type, config)).ToArray());
private static Summary RunWithDirtyAssemblyResolveHelper(Type type, IConfig config) => BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.TypeToBenchmarks(type, config) }).Single();