Am 14.04.2010, 04:08 Uhr, schrieb Laurence Rowe <l...@lrowe.co.uk>:
> Running your test script on my small amazon EC2 instance on linux
> takes between 0.0 and 0.04 seconds (I had to remove the divide by
> total to avoid a zero division error). 0.02 is 5000/s.
Thanks for running the test.
Intrigued by this extreme difference I've done a little run with cProfile,
script attached. On my machine the 100 runs take ~2.65 seconds, at least
2.55 seconds are spent in the "nt.fsync" function. That's an alias for
"os.fsync" on windows. According to the python docs it calls the _commit C
function on windows. See
I wonder if _commit is really *that* slow or if there's another (faster)
function which can be called...
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org