Re: org.prevayler.implementation.PersistenceTest#testDiskSyncPerformance
Karl Wettin <[email protected]> Wed, 31 Oct 2012 17:45:09 +0100
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
31 okt 2012 kl. 17:24 skrev Klaus Wuestefeld: >>> - 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? I did. >> 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. I'll give it a go. karl ------------------------------------------------------------------------------ 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