Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FreeBSD i386 結構、古いCPUの上のpybenchの結果、sharedとstaticを比べたもの。 sharedは 20% も遅くなる。
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* using Python 2.7.3
* disabled garbage collection
* system check interval set to maximum: 2147483647
* using timer: time.time
-------------------------------------------------------------------------------
Benchmark: py27-shared.pybench
-------------------------------------------------------------------------------
Rounds: 10
Warp: 10
Timer: time.time
Machine Details:
Platform ID: FreeBSD-9.1-RELEASE-i386-32bit-ELF
Processor: i386
Python:
Executable: /usr/local/bin/python-shared2.7
Version: 2.7.3
Compiler: GCC 4.2.1 20070831 patched [FreeBSD
Bits: 32bit
Build: Jan 20 2013 12:14:14 (#default)
Unicode: UCS4
-------------------------------------------------------------------------------
Comparing with: py27-static.pybench
-------------------------------------------------------------------------------
Rounds: 10
Warp: 10
Timer: time.time
Machine Details:
Platform ID: FreeBSD-9.1-RELEASE-i386-32bit-ELF
Processor: i386
Python:
Executable: /usr/local/bin/python2.7
Version: 2.7.3
Compiler: GCC 4.2.1 20070831 patched [FreeBSD
Bits: 32bit
Build: Jan 20 2013 12:16:20 (#default)
Unicode: UCS4
Test minimum run-time average run-time
this other diff this other diff
-------------------------------------------------------------------------------
BuiltinFunctionCalls: 186ms 159ms +17.1% 187ms 159ms +17.9%
BuiltinMethodLookup: 116ms 87ms +33.5% 118ms 88ms +34.4%
CompareFloats: 96ms 82ms +17.3% 98ms 82ms +18.8%
CompareFloatsIntegers: 114ms 82ms +39.2% 114ms 83ms +38.1%
CompareIntegers: 81ms 83ms -2.8% 81ms 84ms -2.8%
CompareInternedStrings: 128ms 110ms +16.2% 135ms 112ms +20.5%
CompareLongs: 82ms 74ms +11.0% 82ms 74ms +11.1%
CompareStrings: 129ms 111ms +15.7% 132ms 112ms +18.0%
CompareUnicode: 100ms 96ms +4.3% 105ms 96ms +9.1%
ConcatStrings: 158ms 128ms +23.8% 158ms 128ms +23.7%
ConcatUnicode: 131ms 126ms +4.0% 134ms 128ms +4.7%
CreateInstances: 136ms 115ms +18.7% 141ms 116ms +21.0%
CreateNewInstances: 108ms 89ms +20.9% 109ms 91ms +20.0%
CreateStringsWithConcat: 141ms 107ms +31.3% 143ms 108ms +32.4%
CreateUnicodeWithConcat: 100ms 85ms +17.3% 102ms 86ms +19.4%
DictCreation: 93ms 75ms +24.5% 95ms 75ms +25.8%
DictWithFloatKeys: 160ms 135ms +18.5% 162ms 136ms +18.9%
DictWithIntegerKeys: 132ms 105ms +25.8% 133ms 106ms +25.5%
DictWithStringKeys: 102ms 100ms +2.0% 107ms 102ms +4.8%
ForLoops: 94ms 76ms +23.3% 94ms 78ms +21.3%
IfThenElse: 79ms 75ms +5.7% 79ms 75ms +5.5%
ListSlicing: 64ms 58ms +10.9% 65ms 60ms +9.6%
NestedForLoops: 106ms 93ms +14.3% 108ms 94ms +15.1%
NormalClassAttribute: 127ms 102ms +24.2% 130ms 104ms +25.8%
NormalInstanceAttribute: 117ms 93ms +25.8% 119ms 94ms +26.6%
PythonFunctionCalls: 104ms 95ms +10.2% 106ms 97ms +9.8%
PythonMethodCalls: 139ms 124ms +11.5% 143ms 129ms +10.9%
Recursion: 164ms 121ms +35.3% 165ms 123ms +34.1%
SecondImport: 100ms 94ms +6.4% 100ms 94ms +6.4%
SecondPackageImport: 112ms 101ms +10.3% 112ms 102ms +10.4%
SecondSubmoduleImport: 150ms 139ms +7.5% 151ms 140ms +8.0%
SimpleComplexArithmetic: 115ms 88ms +30.5% 117ms 89ms +31.5%
SimpleDictManipulation: 126ms 95ms +33.2% 127ms 96ms +32.7%
SimpleFloatArithmetic: 123ms 90ms +37.7% 125ms 91ms +38.0%
SimpleIntFloatArithmetic: 103ms 92ms +12.7% 104ms 92ms +12.8%
SimpleIntegerArithmetic: 102ms 91ms +11.9% 103ms 92ms +12.4%
SimpleListManipulation: 104ms 76ms +36.8% 105ms 76ms +37.2%
SimpleLongArithmetic: 115ms 103ms +12.3% 116ms 103ms +12.2%
SmallLists: 131ms 108ms +21.2% 132ms 108ms +21.8%
SmallTuples: 122ms 103ms +18.9% 122ms 104ms +18.2%
SpecialClassAttribute: 129ms 99ms +31.3% 130ms 99ms +31.0%
SpecialInstanceAttribute: 198ms 165ms +20.0% 200ms 166ms +20.8%
StringMappings: 1507ms 1213ms +24.2% 1508ms 1213ms +24.3%
StringPredicates: 313ms 247ms +26.7% 316ms 247ms +27.7%
StringSlicing: 126ms 93ms +35.7% 126ms 94ms +35.2%
TryExcept: 81ms 75ms +8.6% 81ms 75ms +8.9%
TryRaiseExcept: 109ms 94ms +16.1% 111ms 94ms +17.3%
TupleSlicing: 92ms 79ms +16.2% 96ms 80ms +20.4%
UnicodeMappings: 131ms 105ms +24.6% 132ms 106ms +24.6%
UnicodePredicates: 121ms 97ms +25.2% 123ms 97ms +27.4%
UnicodeProperties: 171ms 142ms +20.2% 176ms 143ms +22.4%
UnicodeSlicing: 126ms 108ms +17.1% 128ms 110ms +15.9%
-------------------------------------------------------------------------------
Totals: 7797ms 6482ms +20.3% 7887ms 6528ms +20.8%
(this=py27-shared.pybench, other=py27-static.pybench)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment