Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
pybench.Test Class Reference

Test baseclass. More...

Inherited by Arithmetic.SimpleComplexArithmetic, Arithmetic.SimpleFloatArithmetic, Arithmetic.SimpleIntegerArithmetic, Arithmetic.SimpleIntFloatArithmetic, Arithmetic.SimpleLongArithmetic, Calls.BuiltinFunctionCalls, Calls.ComplexPythonFunctionCalls, Calls.PythonFunctionCalls, Calls.PythonMethodCalls, Calls.Recursion, Constructs.ForLoops, Constructs.IfThenElse, Constructs.NestedForLoops, Dict.DictCreation, Dict.DictWithFloatKeys, Dict.DictWithIntegerKeys, Dict.DictWithStringKeys, Dict.SimpleDictManipulation, Exceptions.TryExcept, Exceptions.TryRaiseExcept, Imports.SecondImport, Imports.SecondPackageImport, Imports.SecondSubmoduleImport, Instances.CreateInstances, Lists.ListSlicing, Lists.NestedListComprehensions, Lists.SimpleListComprehensions, Lists.SimpleListManipulation, Lists.SmallLists, Lookups.BuiltinMethodLookup, Lookups.NormalClassAttribute, Lookups.NormalInstanceAttribute, Lookups.SpecialClassAttribute, Lookups.SpecialInstanceAttribute, NewInstances.CreateNewInstances, Numbers.CompareFloats, Numbers.CompareFloatsIntegers, Numbers.CompareIntegers, Numbers.CompareLongs, Strings.CompareInternedStrings, Strings.CompareStrings, Strings.ConcatStrings, Strings.CreateStringsWithConcat, Strings.StringMappings, Strings.StringPredicates, Strings.StringSlicing, Tuples.SmallTuples, Tuples.TupleSlicing, Unicode.CompareUnicode, Unicode.ConcatUnicode, Unicode.CreateUnicodeWithConcat, Unicode.UnicodeMappings, Unicode.UnicodePredicates, Unicode.UnicodeProperties, Unicode.UnicodeSlicing, With.TryFinally, With.WithFinally, and With.WithRaiseExcept.

List of all members.

Public Member Functions

def __init__
def get_timer
def compatible
def calibrate_test
def run
def calibrate
def test
def stat

Public Attributes

 rounds
 warp
 times
 version
 operations
 last_timing

Static Public Attributes

float version = 2.1
 Instance variables that each test should override.
int operations = 1
int rounds = 100000
int is_a_test = 1
 Internal variables.
tuple last_timing = (0.0, 0.0, 0.0)
int warp = 1
 calibration_runs = CALIBRATION_RUNS
 overhead_times = None
list times = []
 timer = TIMER_PLATFORM_DEFAULT

Detailed Description

Test baseclass.

All test must have this class as baseclass. It provides
    the necessary interface to the benchmark machinery.

    The tests must set .rounds to a value high enough to let the
    test run between 20-50 seconds. This is needed because
    clock()-timing only gives rather inaccurate values (on Linux,
    for example, it is accurate to a few hundreths of a
    second). If you don't want to wait that long, use a warp
    factor larger than 1.

    It is also important to set the .operations variable to a
    value representing the number of "virtual operations" done per
    call of .run().

    If you change a test in some way, don't forget to increase
    its version number.

Definition at line 152 of file pybench.py.


Constructor & Destructor Documentation

def pybench.Test.__init__ (   self,
  warp = None,
  calibration_runs = None,
  timer = None 
)

Definition at line 217 of file pybench.py.

00217 
00218     def __init__(self, warp=None, calibration_runs=None, timer=None):
00219 
00220         # Set parameters
00221         if warp is not None:
00222             self.rounds = int(self.rounds / warp)
00223             if self.rounds == 0:
00224                 raise ValueError('warp factor set too high')
00225             self.warp = warp
00226         if calibration_runs is not None:
00227             if (not ALLOW_SKIPPING_CALIBRATION and
00228                 calibration_runs < 1):
00229                 raise ValueError('at least one calibration run is required')
00230             self.calibration_runs = calibration_runs
00231         if timer is not None:
00232             self.timer = timer
00233 
00234         # Init variables
00235         self.times = []
00236         self.overhead_times = []
00237 
00238         # We want these to be in the instance dict, so that pickle
00239         # saves them
00240         self.version = self.version
00241         self.operations = self.operations
00242         self.rounds = self.rounds

Here is the caller graph for this function:


Member Function Documentation

def pybench.Test.calibrate (   self)
Calibrate the test.

    This method should execute everything that is needed to
    setup and run the test - except for the actual operations
    that you intend to measure. pybench uses this method to
    measure the test implementation overhead.

Reimplemented in Lookups.BuiltinMethodLookup, Numbers.CompareLongs, Arithmetic.SimpleComplexArithmetic, Lookups.NormalInstanceAttribute, Exceptions.TryExcept, Arithmetic.SimpleLongArithmetic, Numbers.CompareFloatsIntegers, Strings.StringPredicates, Constructs.ForLoops, Lookups.SpecialInstanceAttribute, Unicode.UnicodeProperties, Dict.SimpleDictManipulation, Constructs.NestedForLoops, Constructs.IfThenElse, Arithmetic.SimpleIntFloatArithmetic, Strings.StringMappings, Calls.Recursion, Unicode.UnicodePredicates, Calls.PythonMethodCalls, Numbers.CompareFloats, Strings.StringSlicing, Unicode.UnicodeMappings, Lookups.NormalClassAttribute, Tuples.SmallTuples, Lists.NestedListComprehensions, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Lists.SimpleListComprehensions, Arithmetic.SimpleFloatArithmetic, Unicode.UnicodeSlicing, Lists.SmallLists, Calls.BuiltinFunctionCalls, Tuples.TupleSlicing, Dict.DictWithFloatKeys, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Numbers.CompareIntegers, With.WithRaiseExcept, Lookups.SpecialClassAttribute, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Arithmetic.SimpleIntegerArithmetic, With.TryFinally, Imports.SecondSubmoduleImport, Lists.SimpleListManipulation, Imports.SecondPackageImport, Calls.PythonFunctionCalls, Strings.ConcatStrings, Unicode.ConcatUnicode, Dict.DictCreation, NewInstances.CreateNewInstances, Exceptions.TryRaiseExcept, Imports.SecondImport, Instances.CreateInstances, and With.WithFinally.

Definition at line 335 of file pybench.py.

00335 
00336     def calibrate(self):
00337 
00338         """ Calibrate the test.
00339 
00340             This method should execute everything that is needed to
00341             setup and run the test - except for the actual operations
00342             that you intend to measure. pybench uses this method to
00343             measure the test implementation overhead.
00344 
00345         """
00346         return

Here is the caller graph for this function:

Definition at line 262 of file pybench.py.

00262 
00263     def calibrate_test(self):
00264 
00265         if self.calibration_runs == 0:
00266             self.overhead_times = [0.0]
00267             return
00268 
00269         calibrate = self.calibrate
00270         timer = self.get_timer()
00271         calibration_loops = range(CALIBRATION_LOOPS)
00272 
00273         # Time the calibration loop overhead
00274         prep_times = []
00275         for i in range(self.calibration_runs):
00276             t = timer()
00277             for i in calibration_loops:
00278                 pass
00279             t = timer() - t
00280             prep_times.append(t / CALIBRATION_LOOPS)
00281         min_prep_time = min(prep_times)
00282         if _debug:
00283             print()
00284             print('Calib. prep time     = %.6fms' % (
00285                 min_prep_time * MILLI_SECONDS))
00286 
00287         # Time the calibration runs (doing CALIBRATION_LOOPS loops of
00288         # .calibrate() method calls each)
00289         for i in range(self.calibration_runs):
00290             t = timer()
00291             for i in calibration_loops:
00292                 calibrate()
00293             t = timer() - t
00294             self.overhead_times.append(t / CALIBRATION_LOOPS
00295                                        - min_prep_time)
00296 
00297         # Check the measured times
00298         min_overhead = min(self.overhead_times)
00299         max_overhead = max(self.overhead_times)
00300         if _debug:
00301             print('Calib. overhead time = %.6fms' % (
00302                 min_overhead * MILLI_SECONDS))
00303         if min_overhead < 0.0:
00304             raise ValueError('calibration setup did not work')
00305         if max_overhead - min_overhead > 0.1:
00306             raise ValueError(
00307                 'overhead calibration timing range too inaccurate: '
00308                 '%r - %r' % (min_overhead, max_overhead))

def pybench.Test.compatible (   self,
  other 
)
Return 1/0 depending on whether the test is compatible
    with the other Test instance or not.

Definition at line 250 of file pybench.py.

00250 
00251     def compatible(self, other):
00252 
00253         """ Return 1/0 depending on whether the test is compatible
00254             with the other Test instance or not.
00255 
00256         """
00257         if self.version != other.version:
00258             return 0
00259         if self.rounds != other.rounds:
00260             return 0
00261         return 1

Here is the caller graph for this function:

def pybench.Test.get_timer (   self)
Return the timer function to use for the test.

Definition at line 243 of file pybench.py.

00243 
00244     def get_timer(self):
00245 
00246         """ Return the timer function to use for the test.
00247 
00248         """
00249         return get_timer(self.timer)

Here is the caller graph for this function:

def pybench.Test.run (   self)
Run the test in two phases: first calibrate, then
    do the actual test. Be careful to keep the calibration
    timing low w/r to the test timing.

Definition at line 309 of file pybench.py.

00309 
00310     def run(self):
00311 
00312         """ Run the test in two phases: first calibrate, then
00313             do the actual test. Be careful to keep the calibration
00314             timing low w/r to the test timing.
00315 
00316         """
00317         test = self.test
00318         timer = self.get_timer()
00319 
00320         # Get calibration
00321         min_overhead = min(self.overhead_times)
00322 
00323         # Test run
00324         t = timer()
00325         test()
00326         t = timer() - t
00327         if t < MIN_TEST_RUNTIME:
00328             raise ValueError('warp factor too high: '
00329                              'test times are < 10ms')
00330         eff_time = t - min_overhead
00331         if eff_time < 0:
00332             raise ValueError('wrong calibration')
00333         self.last_timing = (eff_time, t, min_overhead)
00334         self.times.append(eff_time)

def pybench.Test.stat (   self)
Return test run statistics as tuple:

    (minimum run time,
     average run time,
     total run time,
     average time per operation,
     minimum overhead time)

Definition at line 357 of file pybench.py.

00357 
00358     def stat(self):
00359 
00360         """ Return test run statistics as tuple:
00361 
00362             (minimum run time,
00363              average run time,
00364              total run time,
00365              average time per operation,
00366              minimum overhead time)
00367 
00368         """
00369         runs = len(self.times)
00370         if runs == 0:
00371             return 0.0, 0.0, 0.0, 0.0
00372         min_time = min(self.times)
00373         total_time = sum(self.times)
00374         avg_time = total_time / float(runs)
00375         operation_avg = total_time / float(runs
00376                                            * self.rounds
00377                                            * self.operations)
00378         if self.overhead_times:
00379             min_overhead = min(self.overhead_times)
00380         else:
00381             min_overhead = self.last_timing[2]
00382         return min_time, avg_time, total_time, operation_avg, min_overhead

Here is the call graph for this function:

def pybench.Test.test (   self)
Run the test.

    The test needs to run self.rounds executing
    self.operations number of operations each.

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, With.WithRaiseExcept, Arithmetic.SimpleFloatArithmetic, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, With.TryFinally, Exceptions.TryExcept, Imports.SecondPackageImport, NewInstances.CreateNewInstances, Strings.ConcatStrings, With.WithFinally, Unicode.ConcatUnicode, Imports.SecondImport, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 347 of file pybench.py.

00347 
00348     def test(self):
00349 
00350         """ Run the test.
00351 
00352             The test needs to run self.rounds executing
00353             self.operations number of operations each.
00354 
00355         """
00356         return

Here is the caller graph for this function:


Member Data Documentation

Definition at line 206 of file pybench.py.

Internal variables.

Definition at line 197 of file pybench.py.

tuple pybench.Test.last_timing = (0.0, 0.0, 0.0) [static]

Definition at line 200 of file pybench.py.

Definition at line 332 of file pybench.py.

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, Arithmetic.SimpleFloatArithmetic, With.WithRaiseExcept, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Exceptions.TryExcept, Imports.SecondPackageImport, With.TryFinally, NewInstances.CreateNewInstances, Strings.ConcatStrings, Unicode.ConcatUnicode, Imports.SecondImport, With.WithFinally, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 187 of file pybench.py.

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, Arithmetic.SimpleFloatArithmetic, With.WithRaiseExcept, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Exceptions.TryExcept, Imports.SecondPackageImport, With.TryFinally, NewInstances.CreateNewInstances, Strings.ConcatStrings, Unicode.ConcatUnicode, Imports.SecondImport, With.WithFinally, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 240 of file pybench.py.

pybench.Test.overhead_times = None [static]

Definition at line 209 of file pybench.py.

int pybench.Test.rounds = 100000 [static]

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, Arithmetic.SimpleFloatArithmetic, With.WithRaiseExcept, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Exceptions.TryExcept, Imports.SecondPackageImport, With.TryFinally, NewInstances.CreateNewInstances, Strings.ConcatStrings, Unicode.ConcatUnicode, Imports.SecondImport, With.WithFinally, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 192 of file pybench.py.

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, Arithmetic.SimpleFloatArithmetic, With.WithRaiseExcept, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Exceptions.TryExcept, Imports.SecondPackageImport, With.TryFinally, NewInstances.CreateNewInstances, Strings.ConcatStrings, Unicode.ConcatUnicode, Imports.SecondImport, With.WithFinally, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 221 of file pybench.py.

Definition at line 215 of file pybench.py.

list pybench.Test.times = [] [static]

Definition at line 212 of file pybench.py.

Definition at line 234 of file pybench.py.

float pybench.Test.version = 2.1 [static]

Instance variables that each test should override.

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, Arithmetic.SimpleFloatArithmetic, With.WithRaiseExcept, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Exceptions.TryExcept, Imports.SecondPackageImport, With.TryFinally, NewInstances.CreateNewInstances, Strings.ConcatStrings, Unicode.ConcatUnicode, Imports.SecondImport, With.WithFinally, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 178 of file pybench.py.

Reimplemented in Lookups.BuiltinMethodLookup, Arithmetic.SimpleComplexArithmetic, Numbers.CompareLongs, Lookups.NormalInstanceAttribute, Constructs.ForLoops, Constructs.NestedForLoops, Arithmetic.SimpleLongArithmetic, Strings.StringPredicates, Unicode.UnicodeProperties, Calls.Recursion, Numbers.CompareFloatsIntegers, Strings.StringMappings, Unicode.UnicodePredicates, Lookups.SpecialInstanceAttribute, Dict.SimpleDictManipulation, Strings.StringSlicing, Lists.NestedListComprehensions, Arithmetic.SimpleIntFloatArithmetic, Unicode.UnicodeMappings, Lists.SimpleListComprehensions, Calls.PythonMethodCalls, Tuples.SmallTuples, Dict.DictWithIntegerKeys, Strings.CreateStringsWithConcat, Unicode.UnicodeSlicing, Numbers.CompareFloats, Lookups.NormalClassAttribute, Strings.CompareInternedStrings, Unicode.CreateUnicodeWithConcat, Calls.BuiltinFunctionCalls, Dict.DictWithFloatKeys, Lists.SmallLists, Arithmetic.SimpleFloatArithmetic, With.WithRaiseExcept, Lists.ListSlicing, Calls.ComplexPythonFunctionCalls, Imports.SecondSubmoduleImport, Strings.CompareStrings, Unicode.CompareUnicode, Dict.DictWithStringKeys, Exceptions.TryExcept, Imports.SecondPackageImport, With.TryFinally, NewInstances.CreateNewInstances, Strings.ConcatStrings, Unicode.ConcatUnicode, Imports.SecondImport, With.WithFinally, Arithmetic.SimpleIntegerArithmetic, Calls.PythonFunctionCalls, Constructs.IfThenElse, Dict.DictCreation, Exceptions.TryRaiseExcept, Instances.CreateInstances, Lists.SimpleListManipulation, Lookups.SpecialClassAttribute, Numbers.CompareIntegers, and Tuples.TupleSlicing.

Definition at line 239 of file pybench.py.

int pybench.Test.warp = 1 [static]

Definition at line 203 of file pybench.py.

Definition at line 224 of file pybench.py.


The documentation for this class was generated from the following file: