public BenchmarkConfiguration(BenchmarkMode mode, BenchmarkPlatform platform, BenchmarkJitVersion jitVersion, BenchmarkFramework framework)
 {
     Mode = mode;
     Platform = platform;
     JitVersion = jitVersion;
     Framework = framework;
 }
예제 #2
0
 public BenchmarkConfiguration(BenchmarkMode mode, BenchmarkPlatform platform, BenchmarkJitVersion jitVersion, BenchmarkFramework framework)
 {
     Mode       = mode;
     Platform   = platform;
     JitVersion = jitVersion;
     Framework  = framework;
 }
예제 #3
0
 public TaskAttribute(
     int processCount = 1,
     BenchmarkMode mode = BenchmarkMode.Throughput,
     BenchmarkPlatform platform = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework = BenchmarkFramework.HostFramework,
     int warmupIterationCount = 5,
     int targetIterationCount = 10
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework, BenchmarkExecutor.Classic, BenchmarkRuntime.Clr, string.Empty, warmupIterationCount, targetIterationCount));
 }
 public TaskAttribute(
     int processCount               = 1,
     BenchmarkMode mode             = BenchmarkMode.Throughput,
     BenchmarkPlatform platform     = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework   = BenchmarkFramework.HostFramework,
     int warmupIterationCount       = 5,
     int targetIterationCount       = 10
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework, BenchmarkToolchain.Classic, BenchmarkRuntime.Clr, warmupIterationCount, targetIterationCount));
 }
예제 #5
0
 public TaskAttribute(
     int processCount = 1,
     BenchmarkMode mode = BenchmarkMode.Throughput,
     BenchmarkPlatform platform = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework = BenchmarkFramework.HostFramework,
     int warmupIterationCount = 5,
     int targetIterationCount = 10
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework),
         new BenchmarkSettings(warmupIterationCount, targetIterationCount));
 }
 public BenchmarkTaskAttribute(
     int processCount               = 3,
     BenchmarkMode mode             = BenchmarkMode.Throughput,
     BenchmarkPlatform platform     = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework   = BenchmarkFramework.HostFramework,
     int warmupIterationCount       = 5,
     int targetIterationCount       = 10
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework),
         new BenchmarkSettings(warmupIterationCount, targetIterationCount));
 }
 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 BenchmarkTaskAttribute(
     int processCount = 3,
     BenchmarkMode mode = BenchmarkMode.Throughput,
     BenchmarkPlatform platform = BenchmarkPlatform.HostPlatform,
     BenchmarkJitVersion jitVersion = BenchmarkJitVersion.HostJit,
     BenchmarkFramework framework = BenchmarkFramework.HostFramework,
     BenchmarkExecutor executor = BenchmarkExecutor.Classic,
     BenchmarkRuntime runtime = BenchmarkRuntime.Clr,
     string runtimeVersion = null,
     int warmupIterationCount = 5,
     int targetIterationCount = 10,
     int[] intParams = null
     )
 {
     Task = new BenchmarkTask(
         processCount,
         new BenchmarkConfiguration(mode, platform, jitVersion, framework, executor, runtime, runtimeVersion, warmupIterationCount, targetIterationCount),
         new BenchmarkParametersSets(intParams));
 }
 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 static string ToConfig(this BenchmarkPlatform platform)
        {
            switch (platform)
            {
            case BenchmarkPlatform.AnyCpu:
                return("AnyCPU");

            case BenchmarkPlatform.X86:
                return("x86");

            case BenchmarkPlatform.X64:
                return("x64");

            case BenchmarkPlatform.HostPlatform:
                return(IntPtr.Size == 4 ? "x86" : "x64");

            default:
                return("AnyCPU");
            }
        }
 public BenchmarkConfiguration(
     BenchmarkMode mode,
     BenchmarkPlatform platform,
     BenchmarkJitVersion jitVersion,
     BenchmarkFramework framework,
     BenchmarkExecutor executor,
     BenchmarkRuntime runtime,
     string runtimeVersion,
     int warmupIterationCount,
     int targetIterationCount)
 {
     Mode = mode;
     Platform = platform;
     JitVersion = jitVersion;
     Framework = framework;
     Executor = executor;
     Runtime = runtime;
     RuntimeVersion = runtimeVersion;
     WarmupIterationCount = warmupIterationCount;
     TargetIterationCount = targetIterationCount;
 }