def tpfunc(size, duration):
    """
    Calculate the throughput from size and time.
    :param size:        object size
    :param duration:    the time the transfer took
    :return:            the throughput in Bytes/sec
    """
    duration = duration if duration > 0.0001 else 0.0001
    ret = size / duration * 1000
    return ret
