Changes between Version 1 and Version 2 of PossibleOptimizationAreas/ReduceDiscussion

Show
Ignore:
Timestamp:
03/08/06 19:58:34 (7 years ago)
Author:
sasha
Comment:

timings

Legend:

Unmodified
Added
Removed
Modified
  • PossibleOptimizationAreas/ReduceDiscussion

    v1 v2  
    11[http://aspn.activestate.com/ASPN/Mail/Message/numpy-discussion/3052158 Mailing list thread] 
     2 
     3{{{ 
     4> python -m timeit -s "from numpy import zeros; x = zeros((2,500),'f')" "x.sum(0)" 
     510000 loops, best of 3: 23.1 usec per loop 
     6> python -m timeit -s "from numpy import zeros; x = zeros((2,500),'f')" "x[0]+x[1]" 
     7100000 loops, best of 3: 4.88 usec per loop 
     8 
     9}}}