Example #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            BenchmarkRunner runner = new BenchmarkRunner();

            ConsoleEventPrinter.Add(runner);

            CommandLineArgs processedArgs = new CommandLineArgs(args);

            ExecuteBatchMode(processedArgs, runner);
        }
Example #2
0
        static void Main(string[] args)
        {
            var runner = new BenchmarkRunner();

            ConsoleEventPrinter.Add(runner);

            runner.Benchmarks.AddSuite(new SampleBenchmarkSuite());
            runner.Benchmarks.SelectAll();

            runner.Configuration.Duration        = 15000;
            runner.Configuration.MeasurementType = MeasurementType.Peak;
            runner.Configuration.NumberOfThreads = 1;
            runner.Configuration.ExecutionType   = ExecutionType.Proportional;
            runner.Configuration.ForceContinue   = true;

            //runner.BenchmarkEnvironment(true, true, true);

            runner.Run();

            var report = runner.Report.Generate();

            Console.Out.WriteLine();
            Console.Out.Write(report);
        }
Example #3
0
 public override BenchmarkRunner Create()
 {
     _runner = base.Create();
     ConsoleEventPrinter.Add(_runner);
     return(_runner);
 }