public static void Main(string[] args) { var competitionSwitch = new BenchmarkCompetitionSwitch(new[] { typeof(ArrayWhereIteratorBenchmarks), typeof(ListWhereIteratorBenchmarks), typeof(ReadOnlyCollectionWhereIteratorBenchmark), typeof(ArrayWhereSelectIteratorBenchmarks), typeof(ListWhereIteratorBenchmarks), typeof(ReadOnlyCollectionWhereSelectIteratorBenchmark), typeof(RangeSelectIteratorBenchmarks), typeof(ArraySelectWhereIteratorBenchmarks), typeof(ArrayProviderBenchmarks), typeof(MathExtensionsBenchmarks), typeof(ReferencingToFieldVsReferencingToLocalVariableAndReadOnlyVsMutable), typeof(BoundariesCheckEliminationBenchmarks), typeof(ExtractedArrayMathExtensionsBenchmarks), typeof(ManualLoopUnrollingBenchmarks), typeof(FastestMin), typeof(ForLoopVsWhileBenchmarks), typeof(WhereLastBenchmark), typeof(SortingExtensionsBenchmarks), typeof(ValueTypesSortingBenchmarks), typeof(SendingHugeValueTypesAsParametersBenchmarks), typeof(ReferenceTypesSortingBenchmarks), typeof(ArraySortersBenchmarks), typeof(SwappingRefVsMultipleArrayAccessBenchmarks), typeof(SystemArraySort), typeof(OptimizedSystemArraySort), typeof(SystemArraySortUsingCustomComparer), typeof(DynamicArraySorterBenchmarks), typeof(CallingComparersOnValueTypesBenchmarks) }); competitionSwitch.Run(args); }
private static void Main(string[] args) { var competitionSwitch = new BenchmarkCompetitionSwitch(new[] { typeof (Plinq) }); competitionSwitch.Run(args); }
private static void RunMapperatorsBenchmarkSelector(string[] args) { var competitionSwitch = new BenchmarkCompetitionSwitch(new[] { typeof(AM.ModelObjectToModelDtoBenchmark), typeof(FM.CustomerToCustomerDTOBenchmark), }); competitionSwitch.Run(args); Console.ReadLine(); }
static void Main(string[] args) { var competitionSwitch = new BenchmarkCompetitionSwitch(new [] { typeof(Util_AtomicCounters), typeof(Sdk_ActionBenchmarkInvoker), typeof(Sdk_ReflectionBenchmarkInvoker), typeof(Sdk_ReflectionBenchmarkInvokerWithRealWork) }); competitionSwitch.Run(args);; }
static void Main(string[] args) { var competitions = new BenchmarkCompetitionSwitch(new[] { typeof (PropertyGetterReflectionBenchmark), typeof (PropertySetterReflectionBenchmark), typeof(DynamicProxyCallBenchmark), typeof(DynamicProxyCreationBenchmark) }); competitions.Run(args); // new BenchmarkRunner().RunCompetition(new PropertyGetterReflectionBenchmark()); // new DynamicProxyCreationBenchmark().NProxyCreation(); Console.ReadKey(); }
static void Main(string[] args) { if (args.Length > 0 && args[0] == "ProfilerAttached") { var parsePerf = new ParsePerf(); for (int i = 0; i < 100000; i++) { parsePerf.ParseOneValue(); parsePerf.ParseTwoValues(); } return; } var benchmarks = Assembly.GetExecutingAssembly().GetTypes() .Where(t => t.GetMethods(BindingFlags.Instance | BindingFlags.Public) .Any(m => m.GetCustomAttributes(typeof(BenchmarkAttribute), false).Any())) .OrderBy(t => t.Namespace) .ThenBy(t => t.Name) .ToArray(); var compSwitch = new BenchmarkCompetitionSwitch(benchmarks); compSwitch.Run(args); }
public void RunDemo() { var tests = new BenchmarkCompetitionSwitch(new[] { typeof(LoopUnrollingDemo) }); tests.Run(new[] {"#0" }); }
public static void Main(string[] args) { var competitionSwitch = new BenchmarkCompetitionSwitch(new[] { typeof(MemoryCompareBenchmark), typeof(MemoryCopyBenchmark), typeof(HashingBenchmark) }); competitionSwitch.Run(args); }
public void RunDemo() { var tests = new BenchmarkCompetitionSwitch(new[] { typeof(Cpu_Ilp_Inc_Demo) }); tests.Run(new[] { "#0" }); }