public BenchmarkToolchainBuilder(BenchmarkToolchain targetToolchain, Func <Benchmark, IBenchmarkLogger, IBenchmarkGenerator> createGenerator, Func <Benchmark, IBenchmarkLogger, IBenchmarkBuilder> createBuilder, Func <Benchmark, IBenchmarkLogger, IBenchmarkExecutor> createExecutor)
 {
     this.createGenerator = createGenerator;
     this.createBuilder   = createBuilder;
     this.createExecutor  = createExecutor;
     TargetToolchain      = targetToolchain;
 }
 public BenchmarkToolchainBuilder(BenchmarkToolchain targetToolchain, Func<Benchmark, IBenchmarkLogger, IBenchmarkGenerator> createGenerator, Func<Benchmark, IBenchmarkLogger, IBenchmarkBuilder> createBuilder, Func<Benchmark, IBenchmarkLogger, IBenchmarkExecutor> createExecutor)
 {
     this.createGenerator = createGenerator;
     this.createBuilder = createBuilder;
     this.createExecutor = createExecutor;
     TargetToolchain = targetToolchain;
 }
 public BenchmarkTaskAttribute(
     int processCount = 3,
     BenchmarkMode mode = BenchmarkMode.Throughput,
     BenchmarkPlatform platform = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework = BenchmarkFramework.HostFramework,
     BenchmarkToolchain toolchain = BenchmarkToolchain.Classic,
     BenchmarkRuntime runtime = BenchmarkRuntime.Clr,
     int warmupIterationCount = 5,
     int targetIterationCount = 10
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework, toolchain, runtime, warmupIterationCount, targetIterationCount));
 }
Esempio n. 4
0
 public BenchmarkTaskAttribute(
     int processCount               = 3,
     BenchmarkMode mode             = BenchmarkMode.Throughput,
     BenchmarkPlatform platform     = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework   = BenchmarkFramework.HostFramework,
     BenchmarkToolchain toolchain   = BenchmarkToolchain.Classic,
     BenchmarkRuntime runtime       = BenchmarkRuntime.Clr,
     int warmupIterationCount       = 5,
     int targetIterationCount       = 10
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework, toolchain, runtime, warmupIterationCount, targetIterationCount));
 }
 public BenchmarkConfiguration(
     BenchmarkMode mode,
     BenchmarkPlatform platform,
     BenchmarkJitVersion jitVersion,
     BenchmarkFramework framework,
     BenchmarkToolchain toolchain,
     BenchmarkRuntime runtime,
     int warmupIterationCount,
     int targetIterationCount)
 {
     Mode = mode;
     Platform = platform;
     JitVersion = jitVersion;
     Framework = framework;
     Toolchain = toolchain;
     Runtime = runtime;
     WarmupIterationCount = warmupIterationCount;
     TargetIterationCount = targetIterationCount;
 }
 public BenchmarkConfiguration(
     BenchmarkMode mode,
     BenchmarkPlatform platform,
     BenchmarkJitVersion jitVersion,
     BenchmarkFramework framework,
     BenchmarkToolchain toolchain,
     BenchmarkRuntime runtime,
     int warmupIterationCount,
     int targetIterationCount)
 {
     Mode                 = mode;
     Platform             = platform;
     JitVersion           = jitVersion;
     Framework            = framework;
     Toolchain            = toolchain;
     Runtime              = runtime;
     WarmupIterationCount = warmupIterationCount;
     TargetIterationCount = targetIterationCount;
 }