예제 #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);