public Benchmark() { conf = CustomConfiguration.LoadConfiguration(); // might be used for other configurations ds = new DataBase(); // DataStore take care of db config single_size = 4 * conf.rows / 10; multiple_size = 6 * conf.rows / 10; }
public static CustomConfiguration LoadConfiguration() { if (_self == null) { _self = new CustomConfiguration(); } return(_self); }
public DataBase(bool first = false) { conf = CustomConfiguration.LoadConfiguration(); if (first) { InitDataBase(); } else { Connect(); } }
static void Main(string[] args) { conf = CustomConfiguration.LoadConfiguration(); var db = new DataBase(true); /*if (conf.latency != null) * { * Benchmark latency = new LatencyBenchmark(); * latency.RunBenchMark(); * }*/ if (conf.load != null) { Benchmark load = new LoadBenchmark(); load.RunBenchMark(); } //Console.WriteLine(conf.load.Operations); Console.WriteLine("Press any key to exit ..."); Console.ReadLine(); }