[Zope3-dev] RE: [Zope3-checkins] SVN: Zope3/trunk/src/ZEO/tests/test_cache.py Mergerev 29194 from ZODB 3.3 branch.

Roger Ineichen dev at projekt01.ch
Thu Feb 17 17:12:44 EST 2005


Hi Tim

zope3-checkins-bounces at zope.org 
> [mailto:zope3-checkins-bounces at zope.org] On Behalf Of Tim Peters
> Sent: Thursday, February 17, 2005 10:23 PM
> To: zope3-checkins at zope.org
> Subject: [Zope3-checkins] SVN: 
> Zope3/trunk/src/ZEO/tests/test_cache.py Mergerev 29194 from 
> ZODB 3.3 branch.
> 
> Log message for revision 29196:
>   Merge rev 29194 from ZODB 3.3 branch.
>   
>   This can be ignored next time a new ZODB is stitched into
>   Zope3.  This fixes a gross boost in process highwater mark
>   when running the tests.  After this, running the ZODB/ZEO
>   --all tests hits a highwater mark of 35MB on WinXP, in one
>   test, and hovers in the low-to-mid 20s before and after.
>   Other platforms may or may not behave better or worse.
>   The highwater mark on these tests was well over 200MB before
>   this patch.
>   
>   setUp():  Use a much smaller (than default) ZEO client cache.
>   
>   The current default is 200MB, and at least testSerialization reads
>   the entire cache file into one giant string.  That grossly boosts
>   the process highwater mark when running the tests.  Windows reclaims
>   the memory after, but other platforms may not.
>   
>   Cool:  testSerialization was one of the slowest tests before, but
>   is 100x faster now.
>   

Tests before update:

D:\projektCompiler\trunk>python test.py -pv
Configuration file found.
Running UNIT tests at level 1
Running UNIT tests from D:\projektCompiler\trunk
5187/6775 ( 76.6%): test_merge_conflict
(...c.tests.test_fsmerger.TestFSMerger)
diff3 doesn't work, diff3 tests disabled
6775/6775 (100.0%): test_wikipath
(zwiki.tests.test_wikipagehierarchy.Test)------
Ran 6775 tests in 916.570s

after update:

D:\projektCompiler\trunk>python test.py -pv
Configuration file found.
Running UNIT tests at level 1
Running UNIT tests from D:\projektCompiler\trunk
5190/6778 ( 76.6%): test_merge_conflict
(...c.tests.test_fsmerger.TestFSMerger)
diff3 doesn't work, diff3 tests disabled
6778/6778 (100.0%): test_wikipath
(zwiki.tests.test_wikipagehierarchy.Test)------
Ran 6778 tests in 633.957s

OK

Thanks it works like a charme.

Do you have more of this speedup ;-)


Regards
Roger Ineichen

Projekt01 GmbH
www.projekt01.ch
_____________________________
END OF MESSAGE  



More information about the Zope3-dev mailing list