[Python-Dev] Memory benchmarking? (original) (raw)
M.-A. Lemburg mal at egenix.com
Thu Nov 29 12:19:51 CET 2007
- Previous message: [Python-Dev] Memory benchmarking?
- Next message: [Python-Dev] [poll] New name for __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2007-11-29 11:52, Titus Brown wrote:
Hi all,
is there a good, or standard memory benchmarking system for Python? pybench doesn't return significantly different results when Python 2.6 is compiled with pymalloc and without pymalloc. Thinking on it, I'm not too surprised -- pybench probably benchmarks a lot of stuff -- but some guidance on how/whether to benchmark different memory allocation schemes would be welcome.
pybench focuses on runtime performance, not memory usage. It's way of creating and deleting objects is also highly non-standard when compared to typical use of Python in real life applications.
It's also rather difficult to benchmark memory allocation, since most implementations work with some sort of pre-allocation, buffer pools or free lists.
If you want to use a similar approach as pybench does, ie. benchmark small parts of the interpreter instead of generating some grand total, then you'd probably have to do this by spawning a separate process per test.
refs:
http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=105&colspec=ID%20Status%20Summary http://evanjones.ca/memoryallocator/ http://www.advogato.org/person/wingo/diary/225.html
-- Marc-Andre Lemburg eGenix.com
Professional Python Services directly from the Source (#1, Nov 29 2007)
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,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611
- Previous message: [Python-Dev] Memory benchmarking?
- Next message: [Python-Dev] [poll] New name for __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]