Skip Montanaro <s...@pobox.com> added the comment: pybench comparison...
% ./python.exe Tools/pybench/pybench.py -s stock.out -c why.out ----------------- -------------------------------------------------------------- PYBENCH 2.0 ------------------------------------------------------------------------------- * using CPython 3.1a0 (py3k:68444M, Jan 11 2009, 10:02:04) [GCC 4.0.1 (Apple Inc. build 5490)] * disabled garbage collection * system check interval set to maximum: 2147483647 * using timer: time.time ------------------------------------------------------------------------------- Benchmark: stock.out ------------------------------------------------------------------------------- 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 11 2009 09:57:51 (#py3k:68444) Unicode: UCS2 ------------------------------------------------------------------------------- Comparing with: why.out ------------------------------------------------------------------------------- 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 11 2009 10:02:04 (#py3k:68444M) Unicode: UCS2 Test minimum run-time average run-time this other diff this other diff ------------------------------------------------------------------------------- BuiltinFunctionCalls: 110ms 106ms +4.1% 111ms 107ms +3.7% BuiltinMethodLookup: 78ms 79ms -0.7% 80ms 80ms -0.4% CompareFloats: 105ms 113ms -7.3% 106ms 114ms -6.8% CompareFloatsIntegers: 161ms 146ms +10.8% 163ms 151ms +7.7% CompareIntegers: 145ms 151ms -3.8% 147ms 152ms -3.1% CompareInternedStrings: 109ms 134ms -18.9% 110ms 135ms -18.9% CompareLongs: 86ms 90ms -4.5% 86ms 91ms -4.8% CompareStrings: 89ms 88ms +0.4% 91ms 89ms +2.3% ComplexPythonFunctionCalls: 146ms 141ms +3.1% 151ms 143ms +5.9% ConcatStrings: 124ms 123ms +0.8% 126ms 129ms -2.0% CreateInstances: 146ms 144ms +1.9% 148ms 146ms +1.2% CreateNewInstances: 110ms 109ms +1.2% 111ms 110ms +0.6% CreateStringsWithConcat: 171ms 158ms +8.4% 175ms 165ms +5.8% DictCreation: 85ms 80ms +6.5% 86ms 81ms +6.8% DictWithFloatKeys: 98ms 99ms -1.0% 99ms 100ms -1.0% DictWithIntegerKeys: 94ms 97ms -3.4% 94ms 103ms -8.6% DictWithStringKeys: 84ms 88ms -5.0% 84ms 92ms -8.3% ForLoops: 85ms 82ms +3.0% 85ms 83ms +3.1% IfThenElse: 116ms 132ms -12.1% 117ms 133ms -12.5% ListSlicing: 119ms 118ms +0.1% 124ms 124ms -0.1% NestedForLoops: 141ms 129ms +9.1% 142ms 132ms +7.8% NestedListComprehensions: 164ms 159ms +3.4% 166ms 160ms +3.8% NormalClassAttribute: 215ms 218ms -1.2% 217ms 220ms -1.2% NormalInstanceAttribute: 111ms 115ms -3.0% 113ms 117ms -3.7% PythonFunctionCalls: 104ms 123ms -15.5% 104ms 124ms -15.6% PythonMethodCalls: 144ms 144ms -0.3% 148ms 149ms -0.6% Recursion: 180ms 195ms -7.8% 191ms 198ms -3.7% SecondImport: 106ms 107ms -1.1% 107ms 108ms -1.1% SecondPackageImport: 118ms 117ms +1.3% 119ms 118ms +1.1% SecondSubmoduleImport: 154ms 156ms -1.2% 156ms 157ms -0.6% SimpleComplexArithmetic: 87ms 89ms -1.9% 88ms 95ms -7.4% SimpleDictManipulation: 180ms 176ms +2.5% 183ms 178ms +2.6% SimpleFloatArithmetic: 92ms 99ms -7.3% 93ms 102ms -9.0% SimpleIntFloatArithmetic: 127ms 127ms -0.4% 128ms 129ms -0.8% SimpleIntegerArithmetic: 127ms 136ms -6.7% 128ms 138ms -7.6% SimpleListComprehensions: 128ms 129ms -0.4% 131ms 130ms +0.2% SimpleListManipulation: 95ms 108ms -12.5% 97ms 110ms -11.6% SimpleLongArithmetic: 85ms 86ms -2.0% 85ms 89ms -4.4% SmallLists: 154ms 153ms +0.8% 157ms 156ms +0.8% SmallTuples: 159ms 157ms +1.3% 161ms 159ms +1.1% SpecialClassAttribute: 357ms 341ms +4.8% 360ms 345ms +4.3% SpecialInstanceAttribute: 110ms 113ms -2.5% 111ms 115ms -3.4% StringMappings: 293ms 312ms -6.3% 298ms 315ms -5.3% StringPredicates: 122ms 126ms -2.6% 125ms 127ms -1.9% StringSlicing: 216ms 215ms +0.5% 222ms 221ms +0.8% TryExcept: 76ms 71ms +7.0% 77ms 71ms +7.5% TryFinally: 84ms 86ms -1.2% 85ms 86ms -1.4% TryRaiseExcept: 58ms 60ms -3.4% 59ms 61ms -3.6% TupleSlicing: 174ms 158ms +10.3% 181ms 162ms +11.4% WithFinally: 133ms 142ms -6.2% 138ms 143ms -3.8% WithRaiseExcept: 153ms 149ms +2.6% 154ms 151ms +2.0% ------------------------------------------------------------------------------- Totals: 6708ms 6772ms -0.9% 6820ms 6897ms -1.1% (this=stock.out, other=why.out) _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4896> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com