示例#1
0
 public BenchmarkTask(int processCount, BenchmarkConfiguration configuration, BenchmarkSettings settings, BenchmarkParams @params = null)
 {
     ProcessCount = processCount;
     Configuration = configuration;
     Settings = settings;
     Params = @params;
 }
        private static void GenerateAppConfigFile(string projectDir, BenchmarkConfiguration configuration)
        {
            var useLagacyJit = configuration.JitVersion.ToConfig();

            var template = GetTemplate(configuration.JitVersion == BenchmarkJitVersion.CurrentJit ? "BenchmarkAppConfigEmpty.txt" : "BenchmarkAppConfig.txt");
            var content = template.
                Replace("$UseLagacyJit$", useLagacyJit);

            string fileName = Path.Combine(projectDir, "app.config");
            File.WriteAllText(fileName, content);
        }
示例#3
0
 public BenchmarkTask(int processCount, BenchmarkConfiguration configuration, BenchmarkParametersSets parametersSets = null)
 {
     ProcessCount = processCount;
     Configuration = configuration;
     ParametersSets = parametersSets ?? BenchmarkParametersSets.Empty;
 }
示例#4
0
 public BenchmarkTask(int processCount, BenchmarkConfiguration configuration, BenchmarkSettings settings)
 {
     ProcessCount  = processCount;
     Configuration = configuration;
     Settings      = settings;
 }
示例#5
0
 public BenchmarkTask(int processCount, BenchmarkConfiguration configuration, BenchmarkSettings settings)
 {
     ProcessCount = processCount;
     Configuration = configuration;
     Settings = settings;
 }
示例#6
0
 public BenchmarkTask(int processCount, BenchmarkConfiguration configuration, BenchmarkParametersSets parametersSets = null)
 {
     ProcessCount   = processCount;
     Configuration  = configuration;
     ParametersSets = parametersSets ?? BenchmarkParametersSets.Empty;
 }