Re: [Hibernate] some performnace metric for the dirty check during hibernate flush.

2003-09-16 Thread Gavin King
I should also point out that 0.13ms per object is an absolute best possible case for the database access. This is reading straight out of Oracle's cache on a local machine, with no concurrent threads. In a real system, the database access would be MUCH slower than that! Gavin King wrote: Listen, I

Re: [Hibernate] some performnace metric for the dirty check during hibernate flush.

2003-09-16 Thread Gavin King
Listen, I really don't have time to waste explaining to you how to do proper benchmarks in a Hotspot-style JVM! But, for a start, any tests _not_ done in a loop are absolutely meaningless! In my *much* more scientific tests, I find that the flush time per object is about 0.01ms (about 1/7th of what

Re: [Hibernate] some performnace metric for the dirty check during hibernate flush.

2003-09-16 Thread Patrick Burleson
At 02:29 AM 9/16/2003 -0700, jiesheng zhang wrote: ---test logic 1. load some (n) number of objects in memory. 2. begin tranaction. 3. // do not do anything here. 4. commit. Then calculate the time consumed from step 2 and 4. test code ---