Thomas Klaeger
2004-09-26 08:36:58 UTC
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
So I would recommend DorothyLocker during testruns and after
bigger changes to the codebase, but not on a production system.
Regards, Thomas
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