Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All tests involved creating a single object node container resource with one or more descendant nodesresources.  Versioning had three modes: enabled on all test objects containers (TRUE), disabled on all test objects containers (FALSE), or enabled on the root object container and on half of the children (HALF).  onParentVersion was set to either VERSION or COPY (for non-versioned tests this has no effect).  Scaling was tested by increasing the number of descendants (100, 1000) and by increasing the size of the jcr:content property on the descendant (roughly 10kb vs 1mb).  Three types of descendant nodes resources were tested: auto-named children nodes resources with auto-generated intermediate folders (child), named children nodes resources (named), and datastreams binaries (DS).

 

After all the descendants were created and assigned the versionable mixin, when appropriate, a single new version of the root node resource was created (New Version Time).  Total time spent creating descendants and enabling versioning on them is recorded as Total Child Creation Time.

Time to create a new version of the root

...

resource

The creation of a new version of the root node resource was only a small portion of the overall time spent in setting up each test (~1.6% mean, 7.6% max), although there was a significant increase in the amount of time required when auto-named children were used as the descendants.  Generally, using COPY mode resulted in a slower new version creation times than VERSION.

...

10000.06666671119.87463700910000.2.710000001369.2.81925.510000.6.51000000.4.8100005471..83333334986.5
Descendant Type# of DescendantsBinary sizeCOPY (ms)VERSION (ms)
child
100
10,000572616
  10000001,000,0001,119956
 
1000
100007227.410,0007,2277,463
  10000007600.51,000,0007,6007,009
DS
100
10,00017275
  1,000,000222117
 
1000
1000010,0001,369262
  10000001,000,0001,925288
named
100
10,00043254
  1,000,00043899
 
1000
10,0005,471247
  10000001,000,0004,986290

 

Disk Usage

Results for disk usage were not always consistent, particularly for small batches where in some cases the size of the binary store actually decreased after a test, possibly due to background cleanup processes occurring in Modeshape.  Usage was measured by using the du command on the data directory before and after running the test.  Binary content was never duplicated in any of the descendant types or onParentVersion modes tested.  For descendants with larger binary content the increase in disk usage for using any type of versioning over not versioning was small.

...

7808136629.677143.21370260104563.231444.813244004472133525.647862.61336844
Descendant TypeNumber of descendantsBinary sizeNot VersionedCOPY (ms)VERSION (ms)
child
100
100002880.57259.210,0002,8807,2597,808
  1000000132636136706.41,000,000132,636136,706136,629
 
1000
1000037094.477579.210,00037,09477,57977,143
  1000000132544013687641,000,0001,325,4401,368,7641,370,260
DS
100
100001678.33506.82658.8
10,0001,6783,5062,658
  1000000102832105066.41,000,000102,832105,066104,563
 
1000
1000016443.233852.810,00016,44333,85231,444
  1000000131598813313701,000,0001,315,9881,331,3701,324,400
named
100
100003088636010,0003,0886,3604,472
  1000000132012135294.41,000,000132,012135,294133,525
 
1000
10000337926390410,00033,79263,90447,862
  1000000132354013530801,000,0001,323,5401,353,0801,336,844

Full data results:

https://docs.google.com/spreadsheets/d/1SnFE-mUMEJnFUr3hXvg8UVBhnl4pq05lDTGlGR_VwYw

 

Multiple versions of the same

...

container

Created a single node resource with one datastream binary and then created new versions of the noderesource:

 

Performance drop-off was considerably faster when numerous datastreams binaries (1000) were added to the root node resource prior to creating many new versions of the noderesource.

Data

https://docs.google.com/spreadsheets/d/1QRieqQTq4LtR5r5AU0LpUPO7_C_ieBNGKU1ezqSrG5M

...