public static Summary RunSource(string source, IConfig config = null) { #if CLASSIC return(BenchmarkRunnerCore.Run(BenchmarkConverter.SourceToBenchmarks(source, config), ToolchainExtensions.GetToolchain)); #else throw new NotSupportedException(); #endif }
public static Summary RunSource(string source, IConfig config = null) { #if CLASSIC return(Run(BenchmarkConverter.SourceToBenchmarks(source, config), config, summaryPerType: false).Single()); #else throw new NotSupportedException(); #endif }
public static Summary RunSource(string source, IConfig config = null) => Run(BenchmarkConverter.SourceToBenchmarks(source, config), config);
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");
public static Summary RunSource(string source, IConfig config = null) => BenchmarkRunnerCore.Run(BenchmarkConverter.SourceToBenchmarks(source, config), config, ToolchainExtensions.GetToolchain);