def do_echo(n,tlist=[0],f=echo, trials=2, runner=time_throughput):
    A = np.zeros((len(tlist),2))
    for i,t in enumerate(tlist):
        t1 = t2 = 0
        for _ in range(trials):
            time.sleep(.25)
            ts = runner(n,t,f)
            t1 += ts[0]
            t2 += ts[1]
        t1 /= trials
        t2 /= trials
        A[i] = (t1,t2)
        A[i] = A[i]/n
        print(t,A[i])
    return A
dataset/ETHPy150Open ipython/ipython-py3k/docs/examples/newparallel/demo/throughput.py/do_echo/swapped operands of `/`