diff options
Diffstat (limited to 'Tools/pybench/Calls.py')
-rw-r--r-- | Tools/pybench/Calls.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Tools/pybench/Calls.py b/Tools/pybench/Calls.py index 72ccd0e..cfe0715 100644 --- a/Tools/pybench/Calls.py +++ b/Tools/pybench/Calls.py @@ -24,7 +24,7 @@ class PythonFunctionCalls(Test): return d,e,f # do calls - for i in xrange(self.rounds): + for i in range(self.rounds): f() f1(i) @@ -104,7 +104,7 @@ class PythonFunctionCalls(Test): return d,e,f # do calls - for i in xrange(self.rounds): + for i in range(self.rounds): pass ### @@ -124,7 +124,7 @@ class BuiltinFunctionCalls(Test): f3 = range # do calls - for i in xrange(self.rounds): + for i in range(self.rounds): f0() f0() @@ -225,7 +225,7 @@ class BuiltinFunctionCalls(Test): f3 = range # do calls - for i in xrange(self.rounds): + for i in range(self.rounds): pass ### @@ -261,7 +261,7 @@ class PythonMethodCalls(Test): o = c() - for i in xrange(self.rounds): + for i in range(self.rounds): o.f() o.f() @@ -367,7 +367,7 @@ class PythonMethodCalls(Test): o = c - for i in xrange(self.rounds): + for i in range(self.rounds): pass ### @@ -388,7 +388,7 @@ class Recursion(Test): return f(x-1) return 1 - for i in xrange(self.rounds): + for i in range(self.rounds): f(10) f(10) f(10) @@ -405,7 +405,7 @@ class Recursion(Test): return f(x-1) return 1 - for i in xrange(self.rounds): + for i in range(self.rounds): pass |