Пример #1
0
 private void SaveBenchmarks(BenchmarkResult[] benchmarks, string fileName)
 {
     using (Stream s = File.Create(fileName))
     {
         BenchmarkResultsStorage.SaveBenchmarks(benchmarks, s);
     }
 }
Пример #2
0
 public BenchmarkResult[] GetResults(int experimentId)
 {
     using (Stream stream = new FileStream(IdToPath(experimentId), FileMode.Open, FileAccess.Read))
     {
         return(BenchmarkResultsStorage.LoadBenchmarks(experimentId, stream));
     }
 }