------------------------------------------------------------------------------- PYBENCH 2.0 ------------------------------------------------------------------------------- * using CPython 2.6a0 (trunk:60643, Feb 13 2008, 23:28:37) [GCC 3.4.4 [FreeBSD] 20050518] * disabled garbage collection * system check interval set to maximum: 2147483647 * using timer: time.time ------------------------------------------------------------------------------- Benchmark: baseline.pybench ------------------------------------------------------------------------------- Rounds: 10 Warp: 10 Timer: time.time Machine Details: Platform ID: FreeBSD-6.1-RELEASE-i386-32bit-ELF Processor: i386 Python: Implementation: CPython Executable: /home/andymac/build/python/baseline/python Version: 2.6.0 Compiler: GCC 3.4.4 [FreeBSD Bits: 32bit Build: Feb 7 2008 22:12:42 (#trunk:60643) Unicode: UCS2 [NOTE: header above only for baseline run] Result columns -------------- (0) baseline [trunk r60643] (elapsed time) (1) 2nd run of (2), to get a feel for "noise" in measurements (% change) (2) baseline with no small int cache (% change) (3) trunk r60643 with no int/float freelists (% change) (4) trunk r60643 with no int/float freelists or small int cache (% change) (3) trunk r60643 with int[500]/float[100] LIFO (% change) (4) trunk r60643 with int[500]/float[100] LIFO & no small int cache (% change) Minimum run-time (0) (1) (2) (3) (4) (5) (6) -------------------------------------------------------------------------- BuiltinFunctionCalls: 360ms -0.0% -4.1% -3.5% +1.1% -5.4% -3.3% BuiltinMethodLookup: 238ms -0.1% +1.0% -0.3% -1.0% +0.1% -0.4% CompareFloats: 246ms -0.1% -3.9% -3.4% -4.9% -4.8% -6.1% CompareFloatsIntegers: 242ms -0.1% -2.9% -1.3% -4.0% -2.0% -4.0% CompareIntegers: 276ms -0.1% -0.1% +1.2% -1.7% +0.2% -2.3% CompareInternedStrings: 267ms +0.1% +0.0% +0.5% -2.2% -0.6% -1.3% CompareLongs: 208ms +0.0% +0.4% +3.1% +0.1% +2.3% +3.3% CompareStrings: 230ms -0.0% +0.2% +0.6% -1.2% -0.3% -1.0% CompareUnicode: 229ms -0.0% +0.2% +0.8% -0.9% +0.5% +3.6% ConcatStrings: 361ms -0.2% -3.4% -2.2% -2.9% -3.5% -3.3% ConcatUnicode: 275ms -0.1% -1.9% -1.1% -3.8% -2.3% +0.9% CreateInstances: 299ms +0.3% +7.7% -2.2% -3.5% +0.4% -2.1% CreateNewInstances: 218ms +1.6% +1.1% +3.2% +4.6% +5.1% -2.3% CreateStringsWithConcat: 308ms +0.0% +0.1% +1.2% +0.3% -0.1% -0.9% CreateUnicodeWithConcat: 260ms -0.1% -1.9% -1.7% +7.8% -4.1% -1.3% DictCreation: 175ms -0.1% +0.0% +0.4% +0.5% +0.2% -0.8% DictWithFloatKeys: 357ms +0.1% -4.0% -4.2% -4.5% -3.3% -4.0% DictWithIntegerKeys: 242ms -0.1% +0.1% +0.3% -0.5% +0.4% -0.4% DictWithStringKeys: 227ms +0.0% +0.3% +0.3% -0.6% +0.8% -0.2% ForLoops: 243ms -0.0% -0.1% -2.0% -2.7% -2.1% -1.9% IfThenElse: 232ms -0.1% +0.7% +1.5% -1.5% +0.2% -1.4% ListSlicing: 160ms +0.5% +1.0% +1.5% -1.0% +1.6% +0.3% NestedForLoops: 272ms -0.1% +0.0% -1.1% -1.7% -1.3% -1.6% NormalClassAttribute: 265ms +0.0% +0.4% +1.0% +0.1% +0.6% -0.6% NormalInstanceAttribute: 257ms +0.0% -0.3% +0.0% -1.6% +0.2% -1.1% PythonFunctionCalls: 210ms -0.2% -2.3% -2.4% -5.6% +3.1% -2.3% PythonMethodCalls: 277ms -0.1% +4.7% -1.1% +0.1% +1.4% +0.5% Recursion: 315ms -0.6% +0.7% -2.2% +5.2% -1.4% +0.1% SecondImport: 384ms -0.2% -1.5% -1.4% -3.7% +1.1% +3.4% SecondPackageImport: 399ms -0.7% -0.0% -0.9% -3.4% +1.3% +0.5% SecondSubmoduleImport: 482ms +0.2% -0.7% -1.9% -3.3% -0.5% +0.2% SimpleComplexArithmetic: 250ms +0.5% +0.1% +1.2% +0.1% +5.6% -0.9% SimpleDictManipulation: 251ms -0.2% +0.0% +0.2% -0.9% -0.3% -1.2% SimpleFloatArithmetic: 234ms +0.6% -0.0% +19.1% +17.0% -0.0% -2.4% SimpleIntFloatArithmetic: 213ms +0.1% +6.6% -0.6% +25.0% -1.7% +3.8% SimpleIntegerArithmetic: 211ms -0.2% +6.8% -0.1% +26.6% -1.2% +4.4% SimpleListManipulation: 217ms +0.2% +0.5% +0.7% -0.2% +0.1% -0.7% SimpleLongArithmetic: 225ms -0.1% -0.3% +0.2% -1.7% +0.3% -2.4% SmallLists: 254ms +0.5% -1.8% +1.6% -0.3% -1.7% -3.3% SmallTuples: 262ms +0.2% -2.5% -2.8% -3.4% -0.4% +1.0% SpecialClassAttribute: 263ms -0.0% -0.6% +0.8% -1.4% +0.7% -2.2% SpecialInstanceAttribute: 318ms +0.1% -2.1% -1.6% -2.7% -1.7% -3.1% StringMappings: 2441ms -0.0% +0.0% +0.5% -0.3% -0.0% +0.5% StringPredicates: 569ms -0.2% -2.9% -2.8% -2.8% -3.0% -3.5% StringSlicing: 243ms +0.4% -0.6% -2.0% -1.8% -3.1% -2.1% TryExcept: 268ms -0.0% +1.4% -3.1% -3.7% -0.0% -4.2% TryRaiseExcept: 399ms +0.2% +2.3% +0.9% +0.2% +0.8% -1.5% TupleSlicing: 212ms +0.7% +3.1% -1.8% -3.6% -1.9% +1.4% UnicodeMappings: 257ms -0.1% -0.1% +1.0% +0.6% -0.3% -0.0% UnicodePredicates: 222ms +0.7% +0.6% +0.3% -1.2% -0.6% +2.3% UnicodeProperties: 328ms +0.4% +1.5% -0.5% +2.0% -0.2% +2.4% UnicodeSlicing: 285ms -1.4% -7.6% +12.5% +14.3% +8.4% +12.7% -------------------------------------------------------------------------- 16435ms +0.0% -0.2% -0.0% +0.1% -0.3% -0.5% -------------------------------------------------------------------------- Average run_time (0) (1) (2) (3) (4) (5) (6) -------------------------------------------------------------------------- BuiltinFunctionCalls: 368ms +0.2% -4.0% -4.6% +0.7% -5.4% -3.6% BuiltinMethodLookup: 239ms -0.1% +0.5% -0.7% -1.6% -0.1% -0.8% CompareFloats: 247ms +0.4% -3.7% -3.1% -4.5% -4.1% -6.4% CompareFloatsIntegers: 242ms -0.2% -2.7% -1.0% -3.7% -1.9% -3.9% CompareIntegers: 277ms -0.1% +0.3% +1.1% -1.0% +0.4% -2.0% CompareInternedStrings: 268ms +0.4% -0.0% +0.6% -2.4% -1.0% -1.7% CompareLongs: 209ms -0.1% +0.1% +3.3% -0.1% +2.3% +3.2% CompareStrings: 232ms -0.1% +0.0% +0.4% -1.0% -0.3% -1.3% CompareUnicode: 230ms +0.0% -0.0% +0.8% -1.0% +0.4% +3.3% ConcatStrings: 391ms +0.0% +0.4% -7.7% -10.0% -9.8% -9.4% ConcatUnicode: 346ms +0.8% -2.1% +1.0% -20.7% -2.7% +0.8% CreateInstances: 302ms +0.5% +7.9% -1.6% -3.0% +0.1% -1.0% CreateNewInstances: 222ms +1.0% +1.5% +4.8% +4.5% +4.9% -1.6% CreateStringsWithConcat: 312ms -0.2% -0.6% +0.4% -0.6% -0.6% -1.4% CreateUnicodeWithConcat: 266ms +0.6% -2.8% -0.8% +8.1% -2.3% -0.0% DictCreation: 176ms +0.2% -0.0% +0.4% +0.7% +0.0% -0.5% DictWithFloatKeys: 361ms -0.1% -4.8% -5.0% -5.5% -3.9% -4.8% DictWithIntegerKeys: 242ms -0.0% +0.1% +0.5% -0.1% +0.8% -0.4% DictWithStringKeys: 228ms -0.0% +0.2% +0.4% -0.6% +1.1% -0.1% ForLoops: 243ms +0.0% +0.0% -2.0% -2.7% -2.1% -1.9% IfThenElse: 234ms +0.4% +0.1% +0.6% -2.2% -0.3% -2.1% ListSlicing: 163ms -0.4% +0.9% +0.2% -2.2% +0.9% -0.7% NestedForLoops: 273ms +0.1% +0.4% +0.5% -1.3% -0.1% +1.2% NormalClassAttribute: 268ms -0.2% +0.1% +0.5% -0.6% +0.4% -1.2% NormalInstanceAttribute: 258ms -0.1% -0.4% -0.1% -1.9% +0.2% -1.1% PythonFunctionCalls: 212ms +1.7% -1.0% -0.2% -4.1% +3.6% -3.0% PythonMethodCalls: 279ms +0.0% +4.9% -0.8% +0.8% +3.2% +1.1% Recursion: 318ms -0.0% +0.4% -2.3% +5.2% -1.6% +0.2% SecondImport: 386ms +0.0% -0.7% -0.3% -2.6% +2.1% +3.7% SecondPackageImport: 401ms +0.0% +0.4% -0.1% -3.0% +1.7% +1.1% SecondSubmoduleImport: 487ms -0.1% -0.9% -1.5% -2.8% +0.2% +0.5% SimpleComplexArithmetic: 254ms -0.9% -0.3% +2.2% -0.9% +5.4% -2.0% SimpleDictManipulation: 252ms -0.2% -0.3% +0.3% -0.8% -0.3% -1.3% SimpleFloatArithmetic: 236ms +0.0% -0.0% +18.4% +16.7% -0.5% -2.6% SimpleIntFloatArithmetic: 215ms -0.0% +5.9% -1.0% +25.4% -2.2% +2.9% SimpleIntegerArithmetic: 214ms +0.1% +6.0% -0.5% +25.9% -2.0% +3.8% SimpleListManipulation: 221ms +0.1% +1.0% -0.1% -0.2% -0.9% -1.7% SimpleLongArithmetic: 227ms +0.2% -0.3% +0.9% -2.1% +0.2% -1.1% SmallLists: 260ms +0.9% -2.3% +1.3% +0.0% -1.7% -3.6% SmallTuples: 265ms +0.2% -2.0% -2.1% -3.5% -0.1% +1.3% SpecialClassAttribute: 264ms +0.1% -0.4% +1.1% -0.8% +1.4% -1.7% SpecialInstanceAttribute: 320ms -0.3% -2.6% -2.2% -3.4% -2.4% -3.6% StringMappings: 2445ms +0.0% +0.2% +0.5% -0.3% -0.0% +1.7% StringPredicates: 572ms -0.2% -2.7% -2.9% -2.7% -1.7% -3.5% StringSlicing: 274ms -3.2% -5.3% -6.3% -6.3% -8.1% -6.7% TryExcept: 269ms -0.3% +1.0% -3.3% -3.8% -0.4% -4.7% TryRaiseExcept: 402ms -0.0% +2.7% +0.7% +0.0% +1.1% -0.9% TupleSlicing: 217ms +0.1% +2.6% -1.8% -2.6% -2.6% +0.8% UnicodeMappings: 261ms -0.7% -0.4% +0.6% +0.0% -0.6% -0.5% UnicodePredicates: 224ms +0.2% +0.3% +0.2% -1.7% -1.1% +1.9% UnicodeProperties: 339ms +0.3% -0.5% -3.1% +1.1% -2.7% +2.2% UnicodeSlicing: 306ms -0.1% -7.7% +8.8% +9.7% +3.9% +7.6% -------------------------------------------------------------------------- 16716ms +0.0% -0.3% -0.3% -0.6% -0.6% -0.6% -------------------------------------------------------------------------- [NOTE: with PyBench % changes, -ve change is faster & +ve change is slower]