[Python-checkins] r67671 - python/branches/py3k-issue1717/Tools/pybench/Calls.py
M.-A. Lemburg
mal at egenix.com
Tue Dec 9 10:02:34 CET 2008
On 2008年12月09日 02:16, Jim Jewett wrote:
> On Mon, Dec 8, 2008 at 7:04 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>> On 2008年12月08日 23:05, mark.dickinson wrote:
>>> Author: mark.dickinson
>>> Date: Mon Dec 8 23:05:12 2008
>>> New Revision: 67671
>>>>>> Log:
>>> Remove cmp from pybench
>> Instead of just removing this part of the test, please replace the
>> function with a reasonable new one that takes 2 arguments and
>> spends more time parsing arguments than working on them.
>>> Do you mean something like:
>> def f2(a, b): pass
>> or something that can't be completely optimized away, like:
>> def f2(a, b): return a+b
No, it has to be a builtin function. The point of the test is
to measure call overhead for builtin functions.
>> Since range() returns an iterator in Py3, we'll also need
>> to change that function in the test.
>> Why? I see that it is doing less work, so the numbers won't be
> directly comparable to Py2, but it is still a builtin function, and
> results should be comparable within the same test version.
True, but it would be better to use a function that is also available
in Python 2 and gives the same results in both Python versions.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Dec 09 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2008年12月02日: Released mxODBC.Connect 1.0.0 http://python.egenix.com/
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-checkins
mailing list