Ejemplo n.º 1
0
        public static BenchmarkResult Run(
            Action action, int iterations)
        {
            var benchmark = new Benchmark(action);

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

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

            return benchmark.Run(iterationsList);
        }