Exemple #1
0
        public static BenchmarkResult RunAndCompare(BenchmarkRunConfiguration run,
                                                    BenchmarkRunConfiguration compareTo)
        {
            Asrt.True(File.Exists(compareTo.GetBenchmarkBaseFilename()),
                      "Benchmark recording file is missing! Please record a benchmark to compare to, before running a comparision.");

            var baseResults = BenchmarkRunResult.ReadFromFile(compareTo.GetBenchmarkBaseFilename());
            var results     = Run(run);

            return(new BenchmarkResult(results, baseResults));
        }
Exemple #2
0
        public static BenchmarkResult RunAndCompare(BenchmarkRunConfiguration run,
      BenchmarkRunConfiguration compareTo)
        {
            Asrt.True(File.Exists(compareTo.GetBenchmarkBaseFilename()),
            "Benchmark recording file is missing! Please record a benchmark to compare to, before running a comparision.");

              var baseResults = BenchmarkRunResult.ReadFromFile(compareTo.GetBenchmarkBaseFilename());
              var results = Run(run);

              return new BenchmarkResult(results, baseResults);
        }
Exemple #3
0
        public static void Record(BenchmarkRunConfiguration configuration)
        {
            var results = Run(configuration);

            results.WriteToFile(configuration.GetBenchmarkBaseFilename());
        }
Exemple #4
0
 public static void Record(BenchmarkRunConfiguration configuration)
 {
     var results = Run(configuration);
       results.WriteToFile(configuration.GetBenchmarkBaseFilename());
 }