Код: Выделить всё
start_time = time.process_time()
cubes_numba_dict = Dict.empty(
key_type=types.UniTuple(types.int32, 3),
value_type=types.float64[:,:] # Should be matrix
)
cubes_numba_dict, x_grid, y_grid, z_grid = creating_dict(cubes_numba_dict, data_np, x_min, x_max, y_min, y_max, z_min, z_max, cube_width, sort_width_multiple)
create_dict_time = time.process_time()
print(f"It took: {create_dict_time-start_time} to create dictionary.")
У меня 6 потоков на моем процессоре время, в течение которого time.process_time() кратно количеству потоков? Если нет, то как мне узнать истинное время обработки?
Подробнее здесь: https://stackoverflow.com/questions/793 ... ion-run-wi