Changes between Version 3 and Version 4 of PossibleOptimizationAreas/FillDiscussion

Show
Ignore:
Timestamp:
02/27/06 22:52:27 (7 years ago)
Author:
sasha
Comment:

timings for version 2

Legend:

Unmodified
Added
Removed
Modified
  • PossibleOptimizationAreas/FillDiscussion

    v3 v4  
    444410000 loops, best of 3: 112 usec per loop 
    4545}}} 
     46 
     47Here are the timings for the [attachment:fast-fill-patch-v2.txt new patch] that incorporates Travis' suggestions: 
     48{{{ 
     49> python -m timeit -s "from numpy import zeros; x = zeros(10000,'b')" "x.fill(1)" 
     50100000 loops, best of 3: 4.61 usec per loop 
     51> python -m timeit -s "from numpy import zeros; x = zeros(10000,'h')" "x.fill(1)" 
     52100000 loops, best of 3: 11.6 usec per loop 
     53> python -m timeit -s "from numpy import zeros; x = zeros(10000,'i')" "x.fill(1)" 
     54100000 loops, best of 3: 11.9 usec per loop 
     55> python -m timeit -s "from numpy import zeros; x = zeros(10000,'d')" "x.fill(1)" 
     56100000 loops, best of 3: 13.1 usec per loop 
     57}}} 
     58 
     59