DorothyLocker and performance

"Thomas Klaeger" <[email protected]> Sun, 26 Sep 2004 10:36:58 +0200
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <41569BCA.1468.1C55D4@localhost>
I did some preliminary performance measurements, comparing 
DorothyLocker.DorothyRLock and threading.RLock. I was running the 
tests on Win2K, on a slightly loaded machine with PIII 1GHz and 
512MB RAM.

RLock create: 22 us
RLock acquire: 13-14 us
RLock release: 12 us
RLock second acquire: 9 us

DorothyRLock create: 32 us
DorothyRLock acquire: 1720-1760 us
DorothyRLock release: 1730 us
DorothyRLock second acquire: 2230 us

From these numbers it can be clearly seen that DorothyLocker has 
some great performance impact!

So I would recommend DorothyLocker during testruns and after 
bigger changes to the codebase, but not on a production system.

Regards, Thomas