Issue #4704: remove use of cmp() in pybench, bump its version number to 2.1,

and make it 2.6-compatible.
This commit is contained in:
Antoine Pitrou 2009-02-07 17:13:31 +00:00
parent 7bf8d4ed4d
commit 8a68122e9c
7 changed files with 40 additions and 19 deletions

View file

@ -2,7 +2,7 @@ from pybench import Test
class PythonFunctionCalls(Test):
version = 2.0
version = 2.1
operations = 5*(1+4+4+2)
rounds = 60000
@ -178,8 +178,8 @@ class BuiltinFunctionCalls(Test):
# localize functions
f0 = globals
f1 = hash
f2 = cmp
f3 = range
f2 = divmod
f3 = max
# do calls
for i in range(self.rounds):
@ -279,8 +279,8 @@ class BuiltinFunctionCalls(Test):
# localize functions
f0 = dir
f1 = hash
f2 = range
f3 = range
f2 = divmod
f3 = max
# do calls
for i in range(self.rounds):