For reference, the output should look something like this: ----
ProtoIndex B-tree node_min set to 4 Running plugins.Library.index.BIndexTest Testsuite: plugins.Library.index.BIndexTest 0/4: 3069 entries generated in 1097 ms, deflated in 3362 ms, root at f02ece0f-bba3-450c-986e-e5070f79d796. ObjProc-val:{1|1|0} ObjProc-pull:{4|4|4} ObjProc-push:{0|0|0} ObjProc-val:{8|8|0} ObjProc-pull:{23|27|20} ObjProc-push:{0|0|0} ObjProc-val:{128|40|0} ObjProc-pull:{0|27|27} ObjProc-push:{0|0|0} ObjProc-val:{128|40|0} ObjProc-pull:{0|27|27} ObjProc-push:{0|0|0} ObjProc-val:{113|55|15} ObjProc-pull:{0|27|27} ObjProc-push:{1|0|0} ObjProc-val:{97|71|31} ObjProc-pull:{0|27|27} ObjProc-push:{4|1|1} ObjProc-val:{90|77|38} ObjProc-pull:{0|27|27} ObjProc-push:{6|4|4} ObjProc-val:{80|81|48} ObjProc-pull:{0|27|27} ObjProc-push:{6|7|7} ObjProc-val:{68|88|60} ObjProc-pull:{0|27|27} ObjProc-push:{4|10|10} ObjProc-val:{59|100|69} ObjProc-pull:{0|27|27} ObjProc-push:{6|12|12} ObjProc-val:{50|109|78} ObjProc-pull:{0|27|27} ObjProc-push:{8|16|16} ObjProc-val:{42|118|86} ObjProc-pull:{0|27|27} ObjProc-push:{4|20|20} ObjProc-val:{35|126|93} ObjProc-pull:{0|27|27} ObjProc-push:{4|21|21} ObjProc-val:{27|128|101} ObjProc-pull:{0|27|27} ObjProc-push:{5|24|24} ObjProc-val:{17|128|111} ObjProc-pull:{0|27|27} ObjProc-push:{4|26|26} ObjProc-val:{7|128|121} ObjProc-pull:{0|27|27} ObjProc-push:{6|28|28} ObjProc-val:{2|128|126} ObjProc-pull:{0|27|27} ObjProc-push:{6|33|33} ObjProc-val:{1|128|127} ObjProc-pull:{0|27|27} ObjProc-push:{2|34|34} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{2|35|35} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{1|36|36} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{2|38|38} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{0|38|38} 2993 entries merged in 24111 ms, root at 66df1323-023d-497c-bc11-6f9346319d70, re-inflated in 2146 ms. validating merge. this will take a few minutes, mostly due to Thread.sleep(). just be patient :-) merge validated in 218064 ms. 1/4: 2937 entries generated in 197 ms, deflated in 433 ms, root at 0fd4e217-0fdd-427a-85b9-6a644cafa201. ObjProc-val:{2|2|0} ObjProc-pull:{4|4|4} ObjProc-push:{0|0|0} ObjProc-val:{72|40|0} ObjProc-pull:{12|27|27} ObjProc-push:{0|0|0} ObjProc-val:{128|40|0} ObjProc-pull:{0|27|27} ObjProc-push:{0|0|0} ObjProc-val:{117|40|11} ObjProc-pull:{0|27|27} ObjProc-push:{2|0|0} ObjProc-val:{100|51|28} ObjProc-pull:{0|27|27} ObjProc-push:{4|2|2} ObjProc-val:{95|68|33} ObjProc-pull:{0|27|27} ObjProc-push:{3|4|4} ObjProc-val:{91|73|37} ObjProc-pull:{0|27|27} ObjProc-push:{4|5|5} ObjProc-val:{82|77|46} ObjProc-pull:{0|27|27} ObjProc-push:{3|8|8} ObjProc-val:{66|86|62} ObjProc-pull:{0|27|27} ObjProc-push:{5|8|8} ObjProc-val:{62|102|66} ObjProc-pull:{0|27|27} ObjProc-push:{6|13|13} ObjProc-val:{51|106|77} ObjProc-pull:{0|27|27} ObjProc-push:{8|16|16} ObjProc-val:{43|117|85} ObjProc-pull:{0|27|27} ObjProc-push:{6|21|21} ObjProc-val:{33|125|95} ObjProc-pull:{0|27|27} ObjProc-push:{6|23|23} ObjProc-val:{29|128|99} ObjProc-pull:{0|27|27} ObjProc-push:{5|27|27} ObjProc-val:{18|128|110} ObjProc-pull:{0|27|27} ObjProc-push:{1|28|28} ObjProc-val:{9|128|119} ObjProc-pull:{0|27|27} ObjProc-push:{3|28|28} ObjProc-val:{2|128|126} ObjProc-pull:{0|27|27} ObjProc-push:{7|31|31} ObjProc-val:{1|128|127} ObjProc-pull:{0|27|27} ObjProc-push:{5|35|35} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{2|37|37} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{2|39|39} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{0|39|39} 3030 entries merged in 21981 ms, root at efb807d0-d3b5-4a89-a4eb-ecf19e1a858b, re-inflated in 2179 ms. validating merge. this will take a few minutes, mostly due to Thread.sleep(). just be patient :-) merge validated in 211785 ms. 2/4: 3037 entries generated in 200 ms, deflated in 399 ms, root at 686cfa96-d339-4b5c-b17d-fd6b3f8b7b19. ObjProc-val:{1|1|0} ObjProc-pull:{4|4|4} ObjProc-push:{0|0|0} ObjProc-val:{7|7|0} ObjProc-pull:{23|27|20} ObjProc-push:{0|0|0} ObjProc-val:{128|40|0} ObjProc-pull:{0|27|27} ObjProc-push:{0|0|0} ObjProc-val:{128|40|0} ObjProc-pull:{0|27|27} ObjProc-push:{0|0|0} ObjProc-val:{125|40|3} ObjProc-pull:{0|27|27} ObjProc-push:{0|0|0} ObjProc-val:{111|43|17} ObjProc-pull:{0|27|27} ObjProc-push:{1|0|0} ObjProc-val:{108|57|20} ObjProc-pull:{0|27|27} ObjProc-push:{1|1|1} ObjProc-val:{88|80|40} ObjProc-pull:{0|27|27} ObjProc-push:{5|2|1} ObjProc-val:{77|85|51} ObjProc-pull:{0|27|27} ObjProc-push:{8|6|5} ObjProc-val:{72|93|56} ObjProc-pull:{0|27|27} ObjProc-push:{5|9|9} ObjProc-val:{59|96|69} ObjProc-pull:{0|27|27} ObjProc-push:{4|11|11} ObjProc-val:{49|109|79} ObjProc-pull:{0|27|27} ObjProc-push:{3|13|13} ObjProc-val:{40|119|88} ObjProc-pull:{0|27|27} ObjProc-push:{4|14|14} ObjProc-val:{31|128|97} ObjProc-pull:{0|27|27} ObjProc-push:{5|17|17} ObjProc-val:{18|128|110} ObjProc-pull:{0|27|27} ObjProc-push:{7|20|20} ObjProc-val:{15|128|113} ObjProc-pull:{0|27|27} ObjProc-push:{4|24|24} ObjProc-val:{8|128|120} ObjProc-pull:{0|27|27} ObjProc-push:{2|24|24} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{8|26|26} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{6|32|32} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{3|35|35} ObjProc-val:{0|128|128} ObjProc-pull:{0|27|27} ObjProc-push:{0|35|35} 3121 entries merged in 22106 ms, root at e904a103-d2c2-4ace-930a-3abc988db3ac, re-inflated in 2213 ms. validating merge. this will take a few minutes, mostly due to Thread.sleep(). just be patient :-) merge validated in 213805 ms. 3/4: 2942 entries generated in 170 ms, deflated in 471 ms, root at 2b32de94-a5e8-40f5-9744-75c34c4b6cb8. ObjProc-val:{2|2|0} ObjProc-pull:{4|4|4} ObjProc-push:{0|0|0} ObjProc-val:{8|8|0} ObjProc-pull:{22|26|20} ObjProc-push:{0|0|0} ObjProc-val:{128|40|0} ObjProc-pull:{0|26|26} ObjProc-push:{1|1|1} ObjProc-val:{125|40|3} ObjProc-pull:{0|26|26} ObjProc-push:{0|1|1} ObjProc-val:{113|46|15} ObjProc-pull:{0|26|26} ObjProc-push:{1|1|1} ObjProc-val:{99|56|29} ObjProc-pull:{0|26|26} ObjProc-push:{2|2|2} ObjProc-val:{97|70|31} ObjProc-pull:{0|26|26} ObjProc-push:{2|3|3} ObjProc-val:{84|72|44} ObjProc-pull:{0|26|26} ObjProc-push:{6|4|4} ObjProc-val:{75|84|53} ObjProc-pull:{0|26|26} ObjProc-push:{5|9|9} ObjProc-val:{60|93|68} ObjProc-pull:{0|26|26} ObjProc-push:{5|9|9} ObjProc-val:{58|108|70} ObjProc-pull:{0|26|26} ObjProc-push:{6|14|14} ObjProc-val:{49|110|79} ObjProc-pull:{0|26|26} ObjProc-push:{6|17|17} ObjProc-val:{37|119|91} ObjProc-pull:{0|26|26} ObjProc-push:{6|20|20} ObjProc-val:{24|128|104} ObjProc-pull:{0|26|26} ObjProc-push:{9|24|24} ObjProc-val:{18|128|110} ObjProc-pull:{0|26|26} ObjProc-push:{6|29|29} ObjProc-val:{9|128|119} ObjProc-pull:{0|26|26} ObjProc-push:{3|30|30} ObjProc-val:{5|128|123} ObjProc-pull:{0|26|26} ObjProc-push:{4|33|33} ObjProc-val:{1|128|127} ObjProc-pull:{0|26|26} ObjProc-push:{4|34|34} ObjProc-val:{0|128|128} ObjProc-pull:{0|26|26} ObjProc-push:{4|37|37} ObjProc-val:{0|128|128} ObjProc-pull:{0|26|26} ObjProc-push:{1|38|38} ObjProc-val:{0|128|128} ObjProc-pull:{0|26|26} ObjProc-push:{2|40|40} ObjProc-val:{0|128|128} ObjProc-pull:{0|26|26} ObjProc-push:{0|40|40} 3017 entries merged in 23099 ms, root at 5c8cb3e5-76fa-46b3-87b7-0e16efcfa49c, re-inflated in 2288 ms. validating merge. this will take a few minutes, mostly due to Thread.sleep(). just be patient :-) merge validated in 214718 ms. 0/4: 9057 entries generated in 474 ms, deflated in 1089 ms, root at 89a9e2f1-3498-4b01-bebe-bcb120424133, inflated all terms separately in 48 ms 1/4: 9018 entries generated in 281 ms, deflated in 1198 ms, root at 2beaeb25-35e9-4fe2-9867-119e5eccf901, inflated all terms separately in 69 ms Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 968.193 sec Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 968.193 sec ---- On 01/10/2010 11:35 AM, Ximin Luo wrote: > http://github.com/freenet/plugin-Library-staging > > If anyone has some free time, please check out the above repo and run the > test: > > $ git clone git://github.com/freenet/plugin-Library-staging.git > $ cd plugin-Library-staging > $ ant junit > > Open up ./test/plugins/Library/index/BIndexTest.java and fiddle about with the > numbers at the top, and run the test with different settings. BIndexTest is > the > first test to run; you can just hit ctrl-C after it's done to skip the rest. > > What you're testing is an algorithm to write to a on-freenet b-tree. Ie. most > of the data is on freenet, and you're just pulling/pushing in (approximately) > the minimum nodes needed to update it, plus a new root node. > > This would be useful for search indexes (which are huge), and could also be > useful for other things that need to store a huge on-freenet data structure. > Obviously, it needs a shit load of testing first, so any help would be > appreciated. > > X > _______________________________________________ > Devl mailing list > Devl at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl