Re: org.prevayler.implementation.PersistenceTest#testDiskSyncPerformance

Klaus Wuestefeld <[email protected]> Wed, 31 Oct 2012 14:24:16 -0200
Newsgroups gmane.comp.java.prevayler
Message-ID <CAMAooZHU4bbrFECsqhH_mVKKB7JxLxmQkyO2F3Fw6LHpzxiUvQ@mail.gmail.com>
>> - Use System.nanotime() instead of currentTimeMillis() in lines 106
>> and 112 to get finer granularity.
>
> I'm getting diffs at 5-10 milliseconds, so that should not be the problem.

I didnt understand. Did you try nanos instead of millis?


> Only see it fail on my MacBook Air with an SSD. My guess is that it has something to do with me using an SSD, but that sounds strange in so many ways.

Atually, no, that makes sense. The faster the disk, the less
difference sync will make and the less prone to jitter the test will
be.

Another option is to transform each operation into a loop of 100
operations or more.

Klaus

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org