------------------------------------------------------------------------------- PYBENCH 2.0 ------------------------------------------------------------------------------- * using CPython 3.1a0 (py3k:68145, Jan 2 2009, 14:10:39) [GCC 4.0.1 (Apple Inc. build 5490)] * disabled garbage collection * system check interval set to maximum: 2147483647 * using timer: time.time ------------------------------------------------------------------------------- Benchmark: unthreaded.pybench ------------------------------------------------------------------------------- Rounds: 10 Warp: 10 Timer: time.time Machine Details: Platform ID: Darwin-9.6.0-i386-32bit Processor: i386 Python: Implementation: CPython Executable: /Users/skip/src/python/py3k/python.exe Version: 3.1.0 Compiler: GCC 4.0.1 (Apple Inc. build 5490) Bits: 32bit Build: Jan 2 2009 14:10:39 (#py3k:68145) Unicode: UCS2 ------------------------------------------------------------------------------- Comparing with: threaded.pybench ------------------------------------------------------------------------------- Rounds: 10 Warp: 10 Timer: time.time Machine Details: Platform ID: Darwin-9.6.0-i386-32bit Processor: i386 Python: Implementation: CPython Executable: /Users/skip/src/python/py3k/python.exe Version: 3.1.0 Compiler: GCC 4.0.1 (Apple Inc. build 5490) Bits: 32bit Build: Jan 2 2009 14:07:56 (#py3k:68145M) Unicode: UCS2 Test minimum run-time average run-time this other diff this other diff ------------------------------------------------------------------------------- BuiltinFunctionCalls: 112ms 118ms -4.9% 113ms 118ms -4.7% BuiltinMethodLookup: 79ms 80ms -2.0% 83ms 81ms +2.3% CompareFloats: 101ms 101ms +0.1% 102ms 102ms +0.1% CompareFloatsIntegers: 139ms 147ms -5.4% 139ms 148ms -5.7% CompareIntegers: 141ms 155ms -9.1% 142ms 156ms -8.9% CompareInternedStrings: 120ms 115ms +4.1% 121ms 116ms +4.4% CompareLongs: 82ms 88ms -7.5% 82ms 89ms -7.5% CompareStrings: 94ms 96ms -1.6% 95ms 100ms -4.3% ComplexPythonFunctionCalls: 144ms 145ms -0.5% 146ms 147ms -0.6% ConcatStrings: 123ms 127ms -3.0% 126ms 129ms -2.7% CreateInstances: 145ms 154ms -5.8% 147ms 155ms -5.4% CreateNewInstances: 109ms 115ms -5.0% 111ms 116ms -4.7% CreateStringsWithConcat: 161ms 173ms -6.9% 168ms 180ms -6.6% DictCreation: 85ms 85ms +0.6% 87ms 87ms +0.5% DictWithFloatKeys: 100ms 110ms -9.5% 102ms 113ms -10.3% DictWithIntegerKeys: 95ms 105ms -10.0% 97ms 106ms -8.6% DictWithStringKeys: 83ms 90ms -7.5% 85ms 92ms -7.6% ForLoops: 88ms 99ms -10.9% 88ms 99ms -11.0% IfThenElse: 107ms 120ms -11.5% 107ms 121ms -11.3% ListSlicing: 117ms 118ms -0.4% 119ms 123ms -2.7% NestedForLoops: 141ms 121ms +16.4% 142ms 122ms +16.3% NestedListComprehensions: 165ms 177ms -6.5% 167ms 180ms -7.4% NormalClassAttribute: 214ms 225ms -4.8% 218ms 229ms -4.9% NormalInstanceAttribute: 116ms 126ms -8.1% 118ms 129ms -8.2% PythonFunctionCalls: 103ms 101ms +2.2% 104ms 102ms +2.0% PythonMethodCalls: 156ms 153ms +2.4% 159ms 158ms +0.8% Recursion: 205ms 216ms -5.1% 206ms 217ms -5.1% SecondImport: 105ms 107ms -1.6% 106ms 108ms -1.9% SecondPackageImport: 116ms 117ms -1.4% 117ms 119ms -1.5% SecondSubmoduleImport: 151ms 157ms -3.5% 154ms 158ms -2.9% SimpleComplexArithmetic: 85ms 110ms -22.3% 86ms 110ms -22.0% SimpleDictManipulation: 181ms 196ms -7.5% 184ms 200ms -8.0% SimpleFloatArithmetic: 88ms 121ms -26.9% 90ms 124ms -26.9% SimpleIntFloatArithmetic: 125ms 136ms -8.3% 126ms 138ms -8.6% SimpleIntegerArithmetic: 125ms 137ms -8.8% 125ms 137ms -8.6% SimpleListComprehensions: 134ms 149ms -9.9% 136ms 151ms -9.9% SimpleListManipulation: 108ms 103ms +4.6% 109ms 106ms +3.0% SimpleLongArithmetic: 85ms 93ms -8.5% 86ms 94ms -8.3% SmallLists: 157ms 165ms -4.9% 159ms 167ms -4.8% SmallTuples: 160ms 172ms -7.2% 161ms 174ms -7.8% SpecialClassAttribute: 342ms 356ms -3.9% 344ms 360ms -4.5% SpecialInstanceAttribute: 114ms 124ms -7.9% 117ms 126ms -7.1% StringMappings: 293ms 294ms -0.5% 294ms 297ms -1.0% StringPredicates: 120ms 129ms -7.1% 121ms 130ms -7.2% StringSlicing: 218ms 227ms -4.3% 219ms 232ms -5.3% TryExcept: 76ms 87ms -12.6% 77ms 88ms -12.2% TryFinally: 83ms 90ms -7.0% 84ms 91ms -7.1% TryRaiseExcept: 59ms 61ms -3.9% 59ms 61ms -3.2% TupleSlicing: 163ms 163ms +0.1% 170ms 167ms +2.1% WithFinally: 162ms 163ms -0.6% 163ms 165ms -0.9% WithRaiseExcept: 149ms 152ms -2.4% 150ms 153ms -2.4% ------------------------------------------------------------------------------- Totals: 6724ms 7069ms -4.9% 6812ms 7168ms -5.0% (this=unthreaded.pybench, other=threaded.pybench)