Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
        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
        }
Exemplo n.º 3
0
 public static Summary RunSource(string source, IConfig config = null) =>
 Run(BenchmarkConverter.SourceToBenchmarks(source, config), config);
Exemplo n.º 4
0
 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");
Exemplo n.º 5
0
 public static Summary RunSource(string source, IConfig config = null) =>
 BenchmarkRunnerCore.Run(BenchmarkConverter.SourceToBenchmarks(source, config), config, ToolchainExtensions.GetToolchain);