Hi!

Just made me a little "generate 1000 random classes + hbm.xml files program" to test the new serialization performances ;)

With 1042 classes (the 42 is the one from the hibernate test) and 3 runs of each:

A default run:
Build configuration: 28-32 seconds (note: this is with addLazy() which actually write a serialized version of the hbm.xml which gives a small penalty)
Build session factory: 20-23 seconds


Run where it uses serialized XML documents:
Build configuration: 10-12 seconds  (20% improvement! :)
Build session factory: 20-23 seconds

Run where it deserialize the whole configuration:
Build configuration: 4-5 seconds (640 % improvement!! ;)
Build session factory: 20-23 seconds

Please not that these times are "cold-starting" times. The timings are done just after the javavm has started and measured after each task (build config and build session factory).
Doing it with a "warm" javavm makes it run significantly faster, but that does not count when the goal is to improve the startup time ;)


So, with these numbers I'll start focusing more on improving session factory build time and suggest people to try using the serializable documents (serializable configurations will only be available in the next major release of hibernate ;)

...and note, i'm still interesting in testing out "real-life" large scale projects to see if they will get the same improvements (I actually think they will get better numbers ;)

Best regards,
Max










-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to