mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
7bf8d4ed4d
commit
8a68122e9c
7 changed files with 40 additions and 19 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue