FTR, here are the results for DN parsing when we don't have a SchemaManager :
trunk branch Nb secs DN/s Nb secs DN/s Ratio 1 RDN : 5.959 1,678,134 5.198 1,923,817 x1.15 2 RDNs : 10.015 998,502 8.197 1,219,959 x1.22 3 RDNs : 12.458 802,697 9.820 1,018,330 x1.27 4 RDNs : 16.382 610,426 13.029 767,519 x1.26 As you can see, the gain is only around 25%. Also, comparing those results with a SchemaAware DN parsing shows that it costs 80% more when we have a SchemaManager involved (in the branch), and up to 4.30 times more in trunk... That means the server will certainly benefit a LOT from these improvements, which will not be necessarily visible for the clients. Le 09/05/16 12:38, Emmanuel Lécharny a écrit : > Hi ! > > that's it, I'm done with the refactoring. All tests are now passing > green, even some that were ignored in trunk (typically things like DN > with multiple Avas). > > I have ran a small test, parsing various DN with 1 to 4 RDNs on trunks > and on my branch, here are the results on 10 000 000 iterations each time : > > trunk branch > Nb secs DN/s Nb secs DN/s Ratio > 1 RDN : 25.787 387,792 8.852 1,129,688 x2.91 > 2 RDNs : 42.046 237,835 13.686 730,674 x3.07 > 3 RDNs : 54.950 181,984 18.376 544,188 x2.99 > 4 RDNs : 71.361 140,133 24.289 411,709 x2.94 > > > Those benchmarks were conducted with a SchemaManager. > > Bottom line, this is a x3 speed up ! I never expected that... OTIH, that > means what we were doing was frankly bad :/ > > I'll commit the branch, and then work on ApacheDS and Studio to have > them working well with the branch (all of that will be done in branches > too). > > I'll come with a list of changes I have done in the APi for you guys to > review them and provide some feedback. >