Fredrik Lundh wrote: > M.-A. Lemburg wrote: > >> <sigh> I put the headings for the timeit.py output on the >> wrong blocks. Thanks for pointing this out. > > so how do you explain the Try/Except results, where timeit and pybench > seems to agree? The pybench results match those of timeit.py on my test machine in both cases. I just mixed up the headers when I wrote the email. Here's the console print-out: Tools/pybench> ~/projects/Python/Installation/bin/python Calls.py 10 loops, best of 3: 21.8 msec per loop Tools/pybench> ~/projects/Python/Installation/bin/python Exceptions.py 100 loops, best of 3: 15.4 msec per loop Tools/pybench> ~/projects/Python/Installation/bin/python Python 2.5a2 (trunk, Jun 8 2006, 01:51:06) [GCC 3.3.4 (pre 3.3.5 20040809)] on linux2 Tools/pybench> python Calls.py 100 loops, best of 3: 18.2 msec per loop Tools/pybench> python Exceptions.py 100 loops, best of 3: 17 msec per loop Tools/pybench> python Python 2.4.2 (#1, Oct 1 2005, 15:24:35) [GCC 3.3.4 (pre 3.3.5 20040809)] on linux2 Calls.py is using timit.py against the PythonFunctionCalls test and Exceptions.py the TryRaiseExcept test. Function calls are slower in 2.5, while try-except in 2.5 is faster than 2.4. I've attached the Calls.py file below. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun 08 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2006-07-03: EuroPython 2006, CERN, Switzerland 24 days left ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Calls.py Url: http://mail.python.org/pipermail/python-dev/attachments/20060608/dda00a33/attachment.pot
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4