Пример #1
0
 private static Summary RunWithDirtyAssemblyResolveHelper(Type type, MethodInfo[] methods, IConfig config = null)
 => BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.MethodsToBenchmarks(type, methods, config) }).Single();
Пример #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");
Пример #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();
Пример #4
0
 private static Summary[] RunWithDirtyAssemblyResolveHelper(BenchmarkRunInfo[] benchmarkRunInfos)
 => BenchmarkRunnerClean.Run(benchmarkRunInfos);
Пример #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();
Пример #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");
Пример #7
0
 private static Summary[] RunWithDirtyAssemblyResolveHelper(Assembly assembly, IConfig config = null)
 => BenchmarkRunnerClean.Run(assembly.GetRunnableBenchmarks().Select(type => BenchmarkConverter.TypeToBenchmarks(type, config)).ToArray());
Пример #8
0
 private static Summary RunWithDirtyAssemblyResolveHelper(Type type, IConfig config)
 => BenchmarkRunnerClean.Run(new[] { BenchmarkConverter.TypeToBenchmarks(type, config) }).Single();