示例#1
0
        public static Summary RunUrl(string url, IConfig config = null)
        {
#if CLASSIC
            return(BenchmarkRunnerCore.Run(BenchmarkConverter.UrlToBenchmarks(url, config), ToolchainExtensions.GetToolchain));
#else
            throw new NotSupportedException();
#endif
        }
示例#2
0
        public static Summary RunUrl(string url, IConfig config = null)
        {
#if CLASSIC
            return(Run(BenchmarkConverter.UrlToBenchmarks(url, config), config, summaryPerType: false).Single());
#else
            throw new NotSupportedException();
#endif
        }
示例#3
0
 public static Summary RunUrl(string url, IConfig config = null) =>
 Run(BenchmarkConverter.UrlToBenchmarks(url, config), config);
示例#4
0
 private static Summary RunUrlWithDirtyAssemblyResolveHelper(string url, IConfig config = null)
 => RuntimeInformation.IsFullFramework
         ? BenchmarkRunnerClean.Run(BenchmarkConverter.UrlToBenchmarks(url, config)).Single()
         : throw new InvalidBenchmarkDeclarationException("Supported only on Full .NET Framework");
示例#5
0
 public static Summary RunUrl(string url, IConfig config = null) =>
 BenchmarkRunnerCore.Run(BenchmarkConverter.UrlToBenchmarks(url, config), config, ToolchainExtensions.GetToolchain);