diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-02-07 17:13:31 +0000 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-02-07 17:13:31 +0000 |
| commit | 8a68122e9cb1ecd0ade79052ac66ad35c6333270 (patch) | |
| tree | 1c5bfc6cfd2d2b6208fabcb72453cc34968116a0 /Tools/pybench/Calls.py | |
| parent | 7bf8d4ed4da5555dcf72652926bfb29276f7a6bc (diff) | |
| download | cpython-git-8a68122e9cb1ecd0ade79052ac66ad35c6333270.tar.gz | |
Issue #4704: remove use of cmp() in pybench, bump its version number to 2.1,
and make it 2.6-compatible.
Diffstat (limited to 'Tools/pybench/Calls.py')
| -rw-r--r-- | Tools/pybench/Calls.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/pybench/Calls.py b/Tools/pybench/Calls.py index 7c11867eae..2e6da1840f 100644 --- a/Tools/pybench/Calls.py +++ b/Tools/pybench/Calls.py @@ -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): |
