public static Summary RunUrl(string url, IConfig config = null)
        {
#if CLASSIC
            return(BenchmarkRunnerCore.Run(BenchmarkConverter.UrlToBenchmarks(url, config), config, ToolchainExtensions.GetToolchain));
#else
            throw new NotSupportedException();
#endif
        }
Esempio n. 2
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
        }
Esempio n. 3
0
        public static Summary Run(Benchmark[] benchmarks, IConfig config)
        {
            var targetType = benchmarks?.FirstOrDefault()?.Target.Type;

            return(BenchmarkRunnerCore.Run(
                       new BenchmarkRunInfo(benchmarks, targetType, BenchmarkConverter.GetFullConfig(targetType, config)),
                       ToolchainExtensions.GetToolchain));
        }
Esempio n. 4
0
 public static Summary Run(BenchmarkRunInfo[] benchmarks) => BenchmarkRunnerCore.Run(benchmarks, ToolchainExtensions.GetToolchain);
Esempio n. 5
0
 public static Summary Run(Type type, MethodInfo[] methods, IConfig config = null) =>
 BenchmarkRunnerCore.Run(BenchmarkConverter.MethodsToBenchmarks(type, methods, config), ToolchainExtensions.GetToolchain);
Esempio n. 6
0
 public static Summary Run(Type type, IConfig config = null) =>
 BenchmarkRunnerCore.Run(BenchmarkConverter.TypeToBenchmarks(type, config), ToolchainExtensions.GetToolchain);
Esempio n. 7
0
 public static Summary RunSource(string source, IConfig config = null) =>
 BenchmarkRunnerCore.Run(BenchmarkConverter.SourceToBenchmarks(source, config), config, ToolchainExtensions.GetToolchain);
Esempio n. 8
0
 public static Summary RunUrl(string url, IConfig config = null) =>
 BenchmarkRunnerCore.Run(BenchmarkConverter.UrlToBenchmarks(url, config), config, ToolchainExtensions.GetToolchain);
Esempio n. 9
0
 public static Summary Run(Benchmark[] benchmarks, IConfig config) =>
 BenchmarkRunnerCore.Run(benchmarks, config, ToolchainExtensions.GetToolchain);