private double ComputeDiskBenchmark() { var suite = new StandardBenchmarkSuite(); var instance = new BenchmarkSuiteInstance(suite); instance.UnselectAllBenchmarks(); instance.SelectBenchmark(suite.DiskBenchmark.Name); base.Start(instance); Thread.Sleep(WaitTimeout); base.Stop(); return(base.Results[0].PerformanceMeasurement.AverageValue); }
private double MeasureDisk() { var suite = new StandardBenchmarkSuite(); var instance = new BenchmarkSuiteInstance(suite); instance.UnselectAll(); instance.SelectByName(suite.DiskBenchmark.Name); Start(instance.Selected); Thread.Sleep(Duration * 1000); Stop(); return(_results.All[0].PerformanceMeasurement.AverageValue); }