private static void RecursiveCheck() { BinarySearch_Recursive bs = new BinarySearch_Recursive(); bs.BinarySearch_Check(); BinarySearch_Recursive_ctrl_flow bs_ctrl = new BinarySearch_Recursive_ctrl_flow(); bs_ctrl.BinarySearch_Check(); //BinarySearch_Recursive_method bs_method = new BinarySearch_Recursive_method(); //bs_method.BinarySearch_Check(); // BinarySearch_Recursive_method_default bs_method_default = new BinarySearch_Recursive_method_default(); // bs_method_default.BinarySearch_Check(); // // BinarySearch_Recursive_method_modified bs_method_modified = new BinarySearch_Recursive_method_modified(); bs_method_modified.BinarySearch_Check(); // //// // BinarySearch_Recursive_class bs_class = new BinarySearch_Recursive_class(); // bs_class.BinarySearch_Check(); //// //// // BinarySearch_Recursive_class_default bs_class_default = new BinarySearch_Recursive_class_default(); // bs_class_default.BinarySearch_Check(); }
public static void RunTests() { BinarySearch_Recursive_method_modified bs = new BinarySearch_Recursive_method_modified(); time_warmup.Clear(); time_run.Clear(); init_code(); bs.Profile(); // bs.BinarySearch_Check(); }
private static void BinarySearch_RECURSIVE(List <int> data, List <int> keys) { BinarySearch_Recursive.testData = data; BinarySearch_Recursive.keys = keys; BinarySearch_Recursive.ITERATIONS = ITERATIONS; BinarySearch_Recursive.WARMUP = WARMUP; BinarySearch_Recursive.NUMBER_OF_RUNS = RUNS; BinarySearch_Recursive.RunTests(); BinarySearch_Recursive_ctrl_flow.testData = data; BinarySearch_Recursive_ctrl_flow.keys = keys; BinarySearch_Recursive_ctrl_flow.ITERATIONS = ITERATIONS; BinarySearch_Recursive_ctrl_flow.WARMUP = WARMUP; BinarySearch_Recursive_ctrl_flow.NUMBER_OF_RUNS = RUNS; BinarySearch_Recursive_ctrl_flow.RunTests(); //BinarySearch_Recursive_method.testData = data; //BinarySearch_Recursive_method.keys = keys; //BinarySearch_Recursive_method.ITERATIONS = ITERATIONS; //BinarySearch_Recursive_method.WARMUP = WARMUP; //BinarySearch_Recursive_method.NUMBER_OF_RUNS = RUNS; //BinarySearch_Recursive_method.RunTests(); //BinarySearch_Recursive_method_default.testData = data; //BinarySearch_Recursive_method_default.keys = keys; //BinarySearch_Recursive_method_default.ITERATIONS = ITERATIONS; //BinarySearch_Recursive_method_default.WARMUP = WARMUP; //BinarySearch_Recursive_method_default.NUMBER_OF_RUNS = RUNS; //BinarySearch_Recursive_method_default.RunTests(); BinarySearch_Recursive_method_modified.testData = data; BinarySearch_Recursive_method_modified.keys = keys; BinarySearch_Recursive_method_modified.ITERATIONS = ITERATIONS; BinarySearch_Recursive_method_modified.WARMUP = WARMUP; BinarySearch_Recursive_method_modified.NUMBER_OF_RUNS = RUNS; BinarySearch_Recursive_method_modified.RunTests(); //BinarySearch_Recursive_class.testData = data; //BinarySearch_Recursive_class.keys = keys; //BinarySearch_Recursive_class.ITERATIONS = ITERATIONS; //BinarySearch_Recursive_class.WARMUP = WARMUP; //BinarySearch_Recursive_class.NUMBER_OF_RUNS = RUNS; //BinarySearch_Recursive_class.RunTests(); //BinarySearch_Recursive_class_default.testData = data; //BinarySearch_Recursive_class_default.keys = keys; //BinarySearch_Recursive_class_default.ITERATIONS = ITERATIONS; //BinarySearch_Recursive_class_default.WARMUP = WARMUP; //BinarySearch_Recursive_class_default.NUMBER_OF_RUNS = RUNS; //BinarySearch_Recursive_class_default.RunTests(); }