public BenchmarkToolchainFacade(Benchmark benchmark, IBenchmarkGenerator generator, IBenchmarkBuilder builder, IBenchmarkExecutor executor)
 {
     this.benchmark = benchmark;
     this.generator = generator;
     this.builder = builder;
     this.executor = executor;
 }
Example #2
0
 public BenchmarkToolchainFacade(Benchmark benchmark, IBenchmarkGenerator generator, IBenchmarkBuilder builder, IBenchmarkExecutor executor)
 {
     this.benchmark = benchmark;
     this.generator = generator;
     this.builder   = builder;
     this.executor  = executor;
 }
Example #3
0
        private void LoadBenchmark()
        {
            var  types = Utils.LoadTypes(_baseDirectory);
            Type benchmarkGeneratorType = types
                                          .FirstOrDefault(y => !y.IsAbstract && y.GetInterfaces().Contains(typeof(IBenchmarkGenerator)));

            if (benchmarkGeneratorType == null)
            {
                throw new Exception("No benchmark generator found");
            }
            _benchmarkGenerator = (IBenchmarkGenerator)Activator.CreateInstance(benchmarkGeneratorType);
            _entityGenerator    = new CustomDataGenerator();
        }