public void ParallelBenchmark()
        {
            var benchmark = new JustBenchmark(new IBenchmarkSubscribers[0]);
            var obj       = new BenchmarkClass();

            benchmark.Run(obj);
            Assert.Equal(1000, obj.ExecuteCount);
            benchmark.Run(obj);
            Assert.Equal(2000, obj.ExecuteCount);
        }
예제 #2
0
        static void Main(string[] args)
        {
            var benchmark = new JustBenchmark();

            benchmark.Run(new HashBenchmark());
        }