[ZODB-Dev] Re: ZODB Benchmarks
Roché Compaan
roche at upfrontsystems.co.za
Thu Nov 1 12:01:34 EDT 2007
On Wed, 2007-10-31 at 10:47 -0400, David Binger wrote:
> On Oct 31, 2007, at 7:35 AM, Roché Compaan wrote:
>
> > Thanks for the explanation.
>
> The actual insertion is very fast. Your benchmark is dominated by
> the time to serialize the changes due to an insertion.
>
> You should usually have just 2 instances to serialize per insertion of
> a new instance: the instance itself and the b-node that points to the
> instance. An insertion may also cause changes in 2 or several b-nodes,
> but those cases are less likely.
>
> Serializing your simple instances is probably fast, but serializing
> the b-nodes appears to be taking much more time, and probably accounts
> for the large number of calls to persistent_id. B-Nodes with higher
> branching factors will have more parts to serialize and they will be
> slower. If you can cut the b-node branching factor in half, I bet your
> benchmark will run almost twice as fast.
I guess you are referring to the B-Tree bucket size? This is not really
configurable and one will have to recompile the C code once you modify
it. For OOBTree the max bucket size is 30. I'll see what effect it has
on the test nevertheless.
--
Roché Compaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the ZODB-Dev
mailing list