Example #1
0
        private static IEnumerable <Summary> RunAll()
        {
            var switcher  = new BenchmarkSwitcher(typeof(Program).Assembly);
            var summaries = switcher.RunAll();

            return(summaries);
        }
Example #2
0
        private static void Main(string[] args)
        {
            var switcher = new BenchmarkSwitcher(typeof(BenchmarkConfig).Assembly);

            switcher.RunAll(new BenchmarkConfig());

            //For single run.
            //switcher.Run(args, new BenchmarkConfig());
        }
Example #3
0
        static void Main(string[] args)
        {
            var benchmarkSwitcher = new BenchmarkSwitcher(new[]
            {
                typeof(Md5VsSha256),
                typeof(BuilderVsConcat),
            });

            benchmarkSwitcher.RunAll();
        }
        static void Main(string[] args)
        {
            var switcher = new BenchmarkSwitcher(new Type[]
            {
                typeof(MyBenchmarkClass)
            }
                                                 );

            switcher.RunAll();
        }
Example #5
0
        static void Main(string[] args)
        {
            var switcher = new BenchmarkSwitcher(BenchmarkTypes);

            if (args == null || args.Length == 0)
            {
                switcher.RunAll();
            }
            else
            {
                switcher.Run(args);
            }
        }
Example #6
0
    public static async Task Main(string[] args)
    {
        var runner = new BenchmarkSwitcher(All.Benchmarks);

        if (args.Any(a => a.Contains("filter")))
        {
            runner.Run(args);
            return;
        }

        runner.RunAll();

        Console.WriteLine("Creating report...");
        var fs = new FileSystem();

        await new Report(fs).Save();
        Console.WriteLine("Done!");
    }
Example #7
0
        public static void Main()
        {
            var switcher = new BenchmarkSwitcher(typeof(Program).Assembly);

            switcher.RunAll();
        }