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); }
static void Main(string[] args) { var benchmark = new JustBenchmark(); benchmark.Run(new HashBenchmark()); }