Skip to content

Instantly share code, notes, and snippets.

@methane
Created January 31, 2013 07:53
Show Gist options
  • Save methane/4681131 to your computer and use it in GitHub Desktop.
Save methane/4681131 to your computer and use it in GitHub Desktop.
Python 3.3.0 amd64 core2duo debian 7.0 --enable-shared ありと無しの比較
-------------------------------------------------------------------------------
PYBENCH 2.1
-------------------------------------------------------------------------------
* using CPython 3.3.0 (default, Jan 31 2013, 14:50:07) [GCC 4.7.2]
* disabled garbage collection
* system check interval set to maximum: 2147483647
* using timer: time.perf_counter
* timer: resolution=1e-09, implementation=clock_gettime(CLOCK_MONOTONIC)
-------------------------------------------------------------------------------
Benchmark: py33-shared.pybench
-------------------------------------------------------------------------------
Rounds: 10
Warp: 10
Timer: time.perf_counter
Machine Details:
Platform ID: Linux-3.2.0-4-amd64-x86_64-with-debian-7.0
Processor:
Python:
Implementation: CPython
Executable: /home/inada-n/local/python-3.3-shared/bin/python3
Version: 3.3.0
Compiler: GCC 4.7.2
Bits: 64bit
Build: Jan 31 2013 16:26:46 (#default)
Unicode: UCS4
-------------------------------------------------------------------------------
Comparing with: py33-static.pybench
-------------------------------------------------------------------------------
Rounds: 10
Warp: 10
Timer: time.perf_counter
Machine Details:
Platform ID: Linux-3.2.0-4-amd64-x86_64-with-debian-7.0
Processor:
Python:
Implementation: CPython
Executable: /home/inada-n/local/python-3.3-static/bin/python3
Version: 3.3.0
Compiler: GCC 4.7.2
Bits: 64bit
Build: Jan 31 2013 14:50:07 (#default)
Unicode: UCS4
Test minimum run-time average run-time
this other diff this other diff
-------------------------------------------------------------------------------
BuiltinFunctionCalls: 86ms 77ms +11.9% 88ms 78ms +12.2%
BuiltinMethodLookup: 56ms 52ms +7.9% 56ms 53ms +6.3%
CompareFloats: 65ms 65ms +0.5% 65ms 65ms +0.5%
CompareFloatsIntegers: 133ms 127ms +4.2% 133ms 128ms +4.1%
CompareIntegers: 102ms 102ms -0.2% 102ms 102ms -0.3%
CompareInternedStrings: 86ms 78ms +10.0% 86ms 78ms +10.2%
CompareLongs: 56ms 59ms -3.8% 56ms 59ms -3.9%
CompareStrings: 71ms 70ms +0.5% 72ms 71ms +1.0%
ComplexPythonFunctionCalls: 98ms 90ms +9.2% 100ms 92ms +9.0%
ConcatStrings: 74ms 72ms +2.0% 78ms 76ms +2.5%
CreateInstances: 110ms 100ms +10.6% 123ms 102ms +20.4%
CreateNewInstances: 85ms 75ms +13.3% 87ms 77ms +13.6%
CreateStringsWithConcat: 145ms 139ms +4.3% 162ms 141ms +14.5%
DictCreation: 112ms 108ms +4.0% 114ms 109ms +4.6%
DictWithFloatKeys: 88ms 85ms +3.9% 89ms 86ms +3.4%
DictWithIntegerKeys: 72ms 69ms +3.8% 76ms 71ms +7.3%
DictWithStringKeys: 63ms 60ms +4.4% 64ms 61ms +3.6%
ForLoops: 61ms 58ms +4.2% 61ms 58ms +4.3%
IfThenElse: 79ms 77ms +2.6% 79ms 77ms +2.9%
ListSlicing: 84ms 84ms +0.6% 85ms 84ms +0.4%
NestedForLoops: 85ms 78ms +9.0% 85ms 78ms +8.9%
NestedListComprehensions: 89ms 87ms +2.0% 90ms 90ms +0.1%
NormalClassAttribute: 171ms 160ms +6.9% 172ms 162ms +6.1%
NormalInstanceAttribute: 97ms 91ms +6.8% 102ms 91ms +12.3%
PythonFunctionCalls: 88ms 81ms +8.7% 88ms 82ms +8.1%
PythonMethodCalls: 112ms 107ms +4.4% 114ms 109ms +4.9%
Recursion: 139ms 130ms +7.0% 139ms 131ms +6.7%
SecondImport: 74ms 72ms +1.8% 76ms 74ms +2.5%
SecondPackageImport: 78ms 76ms +2.2% 79ms 77ms +2.7%
SecondSubmoduleImport: 199ms 168ms +18.5% 202ms 173ms +17.0%
SimpleComplexArithmetic: 78ms 67ms +16.8% 79ms 67ms +17.0%
SimpleDictManipulation: 131ms 124ms +5.5% 133ms 126ms +5.9%
SimpleFloatArithmetic: 67ms 64ms +4.3% 67ms 65ms +3.1%
SimpleIntFloatArithmetic: 79ms 73ms +8.0% 80ms 74ms +7.4%
SimpleIntegerArithmetic: 79ms 72ms +10.6% 81ms 73ms +10.3%
SimpleListComprehensions: 75ms 76ms -0.9% 77ms 79ms -2.3%
SimpleListManipulation: 71ms 60ms +19.6% 72ms 61ms +18.4%
SimpleLongArithmetic: 55ms 49ms +12.7% 55ms 50ms +11.4%
SmallLists: 96ms 89ms +7.3% 97ms 91ms +6.2%
SmallTuples: 109ms 94ms +15.5% 112ms 97ms +15.7%
SpecialClassAttribute: 323ms 245ms +32.1% 327ms 248ms +31.8%
SpecialInstanceAttribute: 101ms 91ms +11.3% 102ms 92ms +11.3%
StringMappings: 192ms 178ms +7.7% 193ms 179ms +7.8%
StringPredicates: 101ms 93ms +8.5% 101ms 95ms +6.0%
StringSlicing: 120ms 102ms +17.7% 122ms 103ms +19.1%
TryExcept: 48ms 46ms +3.9% 48ms 47ms +4.0%
TryFinally: 68ms 63ms +7.8% 68ms 63ms +7.8%
TryRaiseExcept: 36ms 33ms +9.5% 36ms 33ms +11.0%
TupleSlicing: 112ms 106ms +5.5% 115ms 108ms +5.8%
WithFinally: 121ms 104ms +17.2% 123ms 105ms +17.2%
WithRaiseExcept: 113ms 97ms +16.3% 115ms 99ms +15.5%
-------------------------------------------------------------------------------
Totals: 5033ms 4623ms +8.9% 5128ms 4691ms +9.3%
(this=py33-shared.pybench, other=py33-static.pybench)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment