[Python-checkins] r67671 - python/branches/py3k-issue1717/Tools/pybench/Calls.py

M.-A. Lemburg mal at egenix.com
Tue Dec 9 01:04:47 CET 2008


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.

And also remember to change the test version as well so that comparisons
don't start comparing apples and oranges, ie. change it to version
3.0.

Since range() returns an iterator in Py3, we'll also need
to change that function in the test.

> Modified:
>    python/branches/py3k-issue1717/Tools/pybench/Calls.py
> 
> Modified: python/branches/py3k-issue1717/Tools/pybench/Calls.py
> ==============================================================================
> --- python/branches/py3k-issue1717/Tools/pybench/Calls.py	(original)
> +++ python/branches/py3k-issue1717/Tools/pybench/Calls.py	Mon Dec  8 23:05:12 2008
> @@ -178,7 +178,6 @@
>          # localize functions
>          f0 = globals
>          f1 = hash
> -        f2 = cmp
>          f3 = range
>  
>          # do calls
> @@ -191,11 +190,6 @@
>              f1(i)
>              f1(i)
>              f1(i)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
>              f3(1,3,2)
>              f3(1,3,2)
>              f3(1,3,2)
> @@ -209,11 +203,6 @@
>              f1(i)
>              f1(i)
>              f1(i)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
>              f3(1,3,2)
>              f3(1,3,2)
>              f3(1,3,2)
> @@ -227,11 +216,6 @@
>              f1(i)
>              f1(i)
>              f1(i)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
>              f3(1,3,2)
>              f3(1,3,2)
>              f3(1,3,2)
> @@ -245,11 +229,6 @@
>              f1(i)
>              f1(i)
>              f1(i)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
>              f3(1,3,2)
>              f3(1,3,2)
>              f3(1,3,2)
> @@ -263,11 +242,6 @@
>              f1(i)
>              f1(i)
>              f1(i)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
> -            f2(1,2)
>              f3(1,3,2)
>              f3(1,3,2)
>              f3(1,3,2)
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins

-- 
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