[Zope3-dev] Slow down

Tim Peters tim@zope.com
Thu, 19 Dec 2002 11:01:01 -0500


[Barry A. Warsaw]
> Also remember that until recently the Unix and Windows ZEO tests
> worked quite differently, but that caused problems when I wanted to
> generalize the ZEO tests to be able to work with different back-end
> storages.  Now they share a common code base, which is a good thing.
> However the Windows code was much simpler so that's the code base they
> share, and I think Tim said the Windows tets were always slower.

Yes, they always were (and are), but I don't think that's because the test
framework was different.  Process creation is much more expensive on Windows
than is thread creation on Windows, so any test that requires spawning a
process is going to drag on Windows.  Testing ZEO requires more than one
process, so Windows sloth comes with the territory.  Process creation on
Linux is much zippier.  Jeremy and I have also timed select() calls taking
about twice as long to return under Win2K than under Linux (on comparable
HW), and select() is heavily used under the covers by ZEO.

IOW, *just* switching the test framework to the simpler Windows driver isn't
a good reason to expect the Linux tests to run slower than the Linux tests
used to run.