Exemplo n.º 1
0
 private static Summary RunWithDirtyAssemblyResolveHelper(Type type, MethodInfo[] methods, IConfig config = null)
 => BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.MethodsToBenchmarks(type, methods, config) }).Single();
Exemplo n.º 2
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.º 3
0
 private static Summary RunWithDirtyAssemblyResolveHelper(Type type, IConfig config, string[] args)
 => (args == null
         ? BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.TypeToBenchmarks(type, config) })
         : new BenchmarkSwitcher(new[] { type }).RunWithDirtyAssemblyResolveHelper(args, config, false))
 .Single();
Exemplo n.º 4
0
 private static Summary[] RunWithDirtyAssemblyResolveHelper(BenchmarkRunInfo[] benchmarkRunInfos)
 => BenchmarkRunnerClean.Run(benchmarkRunInfos);
Exemplo n.º 5
0
 private static Summary[] RunWithDirtyAssemblyResolveHelper(Type[] types, IConfig config, string[] args)
 => args == null
         ? BenchmarkRunnerClean.Run(types.Select(type => BenchmarkConverter.TypeToBenchmarks(type, config)).ToArray())
         : new BenchmarkSwitcher(types).RunWithDirtyAssemblyResolveHelper(args, config, false).ToArray();
Exemplo n.º 6
0
 private static Summary RunUrlWithDirtyAssemblyResolveHelper(string url, IConfig config = null)
 => RuntimeInformation.IsFullFramework
         ? BenchmarkRunnerClean.Run(BenchmarkConverter.UrlToBenchmarks(url, config)).Single()
         : throw new NotSupportedException("Supported only on Full .NET Framework");
Exemplo n.º 7
0
 private static Summary[] RunWithDirtyAssemblyResolveHelper(Assembly assembly, IConfig config = null)
 => BenchmarkRunnerClean.Run(assembly.GetRunnableBenchmarks().Select(type => BenchmarkConverter.TypeToBenchmarks(type, config)).ToArray());
Exemplo n.º 8
0
 private static Summary RunWithDirtyAssemblyResolveHelper(Type type, IConfig config)
 => BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.TypeToBenchmarks(type, config) }).Single();