On 12/03/2008, Matt McClure <[EMAIL PROTECTED]> wrote: > Does JMeter have a ms-resolution timer or a sub-ms-resolution timer? > > I'm trying to implement performance tests for a low-latency web > service. I'm using JMeter 2.3.1. My current implementation produces > a JTL file with many <sample> elements whose @t attribute is 0, 15, > 16, 31. I interpret this to mean that the timer JMeter is using has > 15-16 ms resolution. I see that the JMeter source code[1] once > contained a library from Vladimir Roubtsov for higher resolution > timing[2], but I didn't find any evidence in the Subversion history > that JMeter ever actually used the library. It looks like the library > was removed from the JMeter source recently[3].
Yes. The license status was not entirely clear, but the main problem was that the code was not pure Java and was only available for Windows. Also, Java 1.5 has a nanosecond timer, which would be a better solution in future. As you found, the code was anyway not integrated into the rest of JMeter, which currently assumes times are in milliseconds. > Would you recommend JMeter for my needs? JMeter could be used to generate a background load for the server; even it if does not show tthe finest detail it will certainly show if the server times increase beyond the desired values. You could use some other product at the same time to measure the responses more accurately. > Can JMeter be configured for higher-resolution timing? If you are prepared to do some Java coding, you could change the SampleResult class to use nanotime for the calculations. You could try replacing all the calls to currentTimeMillis() with the appropriately scaled nanoTime. This would hopefully get around the resolution problem. > If JMeter isn't appropriate, what tool would you recommend? Sorry, no idea. > Thanks for your time! > > Matt > > [1] > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/jorphan/native/win32/?pathrev=590678, > > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/timer/?pathrev=602086 > > [2] http://www.javaworld.com/javaworld/javaqa/2003-01/01-qa-0110-timing.html > > [3] http://svn.apache.org/viewvc?view=rev&revision=590679, > http://svn.apache.org/viewvc?view=rev&revision=602087 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

