| Version 2 (modified by sasha, 7 years ago) |
|---|
> python -m timeit -s "from numpy import zeros; x = zeros((2,500),'f')" "x.sum(0)" 10000 loops, best of 3: 23.1 usec per loop > python -m timeit -s "from numpy import zeros; x = zeros((2,500),'f')" "x[0]+x[1]" 100000 loops, best of 3: 4.88 usec per loop
