def calculate_speedup(t_cpu=1, t_gpu=0.5):
    """
    Calculate speedup between GPU and CPU.
    """
    speedup = round(t_cpu/t_gpu, 5)
    print('GPU speedup factor over GPU:', speedup)
    return speedup