Exemple #1
0
        public static BenchmarkResult Run(
            Action action, int iterations)
        {
            var benchmark = new Benchmark(action);

            return benchmark.Run(iterations);
        }
Exemple #2
0
        public static BenchmarkResult Run(
            Action action, TimeSpan stopAfter)
        {
            var benchmark = new Benchmark(action);

            return benchmark.Run(stopAfter);
        }
Exemple #3
0
        public static BenchmarkResultList Run(
            Action action, params int[] iterationsList)
        {
            var benchmark = new Benchmark(action);

            return benchmark.Run(iterationsList);
        }