def multiprocess_datanum(self, test_dict, put_num): for data_num in test_dict.keys(): # print data_num finish_time = draw_review_distance_multiprocess(list_num=data_num, put_num=put_num) test_dict[data_num] = finish_time # test_dict = collections.OrderedDict(sorted(test_dict.items())) return test_dict
def multiprocess_datanum(self, test_dict, put_num): for data_num in test_dict.keys(): # print data_num finish_time = draw_review_distance_multiprocess(list_num=data_num, put_num=put_num) test_dict[data_num] = finish_time # test_dict = collections.OrderedDict(sorted(test_dict.items())) return test_dict
def multiprocess_putnum(self, test_dict, data_num): """ 传入希望的总处理数据量,每次载入queue的数量量(dict形式) 然后计算不同的queue数据量下处理的时间,最后画图 """ for put_num in test_dict.keys(): finish_time = draw_review_distance_multiprocess(list_num=data_num, put_num=put_num) print put_num, "with finish_time", finish_time test_dict[put_num] = finish_time # test_dict = collections.OrderedDict(sorted(test_dict.items())) print test_dict
def multiprocess_putnum(self, test_dict, data_num): """ 传入希望的总处理数据量,每次载入queue的数量量(dict形式) 然后计算不同的queue数据量下处理的时间,最后画图 """ for put_num in test_dict.keys(): finish_time = draw_review_distance_multiprocess(list_num=data_num, put_num=put_num) print put_num, "with finish_time", finish_time test_dict[put_num] = finish_time # test_dict = collections.OrderedDict(sorted(test_dict.items())) print test_dict