[Python-Dev] Python Benchmarks

M.-A. Lemburg mal at egenix.com
Wed Jun 7 23:19:17 CEST 2006


M.-A. Lemburg wrote:
> Some more interesting results from comparing Python 2.4 (other) against
> the current SVN snapshot (this):

Here's the list again, this time without wrapping (sigh):
Testnames minimum run-time average run-time
 this other diff this other diff
-------------------------------------------------------------------------------
 BuiltinMethodLookup: 141ms 124ms +13.9% 148ms 134ms +10.8%
 ConcatUnicode: 97ms 120ms -19.5% 104ms 131ms -20.6%
 CreateInstances: 102ms 92ms +10.3% 104ms 96ms +8.0%
 CreateUnicodeWithConcat: 98ms 122ms -19.1% 103ms 129ms -20.6%
 DictWithFloatKeys: 128ms 149ms -14.4% 130ms 177ms -26.4%
 NestedForLoops: 140ms 126ms +11.1% 143ms 128ms +11.8%
 PythonFunctionCalls: 130ms 108ms +21.3% 132ms 109ms +20.9%
 SecondImport: 136ms 114ms +18.9% 138ms 117ms +18.2%
 SecondPackageImport: 141ms 122ms +15.4% 143ms 124ms +15.3%
 SecondSubmoduleImport: 166ms 146ms +13.3% 179ms 148ms +21.3%
 SimpleComplexArithmetic: 107ms 131ms -18.5% 121ms 133ms -9.2%
 StringPredicates: 109ms 96ms +13.5% 117ms 99ms +18.7%
 TryRaiseExcept: 115ms 137ms -16.2% 129ms 140ms -7.6%
 UnicodeMappings: 140ms 157ms -10.7% 142ms 160ms -11.3%
 UnicodePredicates: 111ms 98ms +13.3% 115ms 100ms +15.6%
 UnicodeSlicing: 103ms 114ms -10.1% 108ms 116ms -6.7%
> It appears as if the import mechanism took a hit between the
> versions.
>> The NFS sprint results are also visible.
>> A little disturbing is the slow-down for Python function calls
> and the built-in method lookup. Did anything change in these parts
> of the interpreter ?
>>> This is the machine I used for running the pybench:
> Timer: time.time
> Machine Details:
> Platform ID: Linux-2.6.8-24.19-default-x86_64-with-SuSE-9.2-x86-64
> Processor: x86_64
>
-- 
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Jun 07 2006)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /