------------------------------------------------------------------------------- PYBENCH 2.0 ------------------------------------------------------------------------------- * using CPython 3.1a0 (py3k:68170, Jan 2 2009, 14:18:52) [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-Power_Macintosh-powerpc-32bit Processor: powerpc 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:18:52 (#py3k:68170) Unicode: UCS2 ------------------------------------------------------------------------------- Comparing with: threaded.pybench ------------------------------------------------------------------------------- Rounds: 10 Warp: 10 Timer: time.time Machine Details: Platform ID: Darwin-9.6.0-Power_Macintosh-powerpc-32bit Processor: powerpc 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:15:24 (#py3k:68170M) Unicode: UCS2 Test minimum run-time average run-time this other diff this other diff ------------------------------------------------------------------------------- BuiltinFunctionCalls: 179ms 139ms +28.6% 180ms 142ms +27.3% BuiltinMethodLookup: 158ms 125ms +26.1% 167ms 128ms +30.3% CompareFloats: 232ms 146ms +58.4% 236ms 148ms +59.8% CompareFloatsIntegers: 385ms 306ms +26.1% 390ms 308ms +26.4% CompareIntegers: 336ms 226ms +49.0% 344ms 228ms +50.8% CompareInternedStrings: 304ms 165ms +83.9% 307ms 166ms +84.8% CompareLongs: 197ms 132ms +49.3% 199ms 133ms +49.7% CompareStrings: 250ms 145ms +71.9% 253ms 147ms +72.1% ComplexPythonFunctionCalls: 219ms 190ms +14.9% 223ms 194ms +15.0% ConcatStrings: 261ms 238ms +9.5% 265ms 243ms +8.7% CreateInstances: 231ms 230ms +0.7% 236ms 236ms -0.1% CreateNewInstances: 170ms 172ms -1.2% 173ms 175ms -1.3% CreateStringsWithConcat: 263ms 203ms +29.7% 276ms 212ms +30.2% DictCreation: 129ms 115ms +12.3% 131ms 117ms +12.1% DictWithFloatKeys: 273ms 203ms +34.6% 277ms 206ms +34.8% DictWithIntegerKeys: 203ms 144ms +40.9% 205ms 145ms +40.8% DictWithStringKeys: 161ms 104ms +54.7% 168ms 105ms +59.1% ForLoops: 185ms 103ms +79.3% 186ms 104ms +78.8% IfThenElse: 263ms 173ms +52.5% 265ms 175ms +51.3% ListSlicing: 203ms 188ms +8.2% 206ms 192ms +7.4% NestedForLoops: 235ms 166ms +41.9% 238ms 168ms +41.2% NestedListComprehensions: 300ms 220ms +36.6% 304ms 224ms +35.7% NormalClassAttribute: 442ms 371ms +19.2% 445ms 377ms +18.0% NormalInstanceAttribute: 207ms 164ms +26.8% 212ms 166ms +27.4% PythonFunctionCalls: 171ms 145ms +18.3% 172ms 150ms +15.0% PythonMethodCalls: 221ms 253ms -12.6% 227ms 255ms -11.1% Recursion: 335ms 279ms +20.0% 339ms 285ms +19.0% SecondImport: 218ms 209ms +4.1% 224ms 214ms +4.8% SecondPackageImport: 231ms 218ms +5.8% 235ms 220ms +6.6% SecondSubmoduleImport: 295ms 285ms +3.4% 305ms 291ms +4.6% SimpleComplexArithmetic: 170ms 145ms +16.7% 172ms 147ms +17.2% SimpleDictManipulation: 315ms 244ms +29.2% 319ms 250ms +27.5% SimpleFloatArithmetic: 184ms 137ms +34.4% 186ms 139ms +33.5% SimpleIntFloatArithmetic: 248ms 199ms +24.2% 254ms 203ms +25.1% SimpleIntegerArithmetic: 247ms 200ms +23.2% 252ms 202ms +24.6% SimpleListComprehensions: 265ms 191ms +38.6% 268ms 193ms +38.7% SimpleListManipulation: 184ms 140ms +31.0% 192ms 144ms +33.5% SimpleLongArithmetic: 172ms 149ms +15.7% 177ms 151ms +17.4% SmallLists: 270ms 234ms +15.2% 273ms 240ms +13.7% SmallTuples: 234ms 220ms +6.3% 238ms 222ms +7.1% SpecialClassAttribute: 649ms 618ms +5.0% 660ms 625ms +5.6% SpecialInstanceAttribute: 203ms 161ms +26.2% 207ms 164ms +26.2% StringMappings: 502ms 489ms +2.7% 508ms 495ms +2.7% StringPredicates: 241ms 205ms +17.7% 244ms 207ms +17.9% StringSlicing: 396ms 356ms +11.4% 404ms 363ms +11.3% TryExcept: 184ms 113ms +63.2% 186ms 114ms +63.1% TryFinally: 154ms 150ms +3.2% 156ms 151ms +3.4% TryRaiseExcept: 93ms 97ms -4.9% 94ms 100ms -5.6% TupleSlicing: 272ms 243ms +11.7% 275ms 247ms +11.2% WithFinally: 235ms 235ms -0.0% 237ms 238ms -0.2% WithRaiseExcept: 256ms 266ms -3.8% 259ms 271ms -4.3% ------------------------------------------------------------------------------- Totals: 12729ms 10548ms +20.7% 12950ms 10723ms +20.8% (this=unthreaded.pybench, other=threaded.pybench)