sorry for the confusion. There's 2 issues that could result in a performance difference between OS.
The first is getting time from the operating system regardless of which method one calls to get a timestamp. Back when I was active in jmeter, we used System.currentTimeMillis(). I don't know if it is still using that or the newer System.nanoTime(). More succintly 1. System.nanoTime is slower than System.currentTimeMillis on all OS 20-30% 2. getting the system time on linux is slower than on windows and solaris. I don't know about aix, hpux or mac. 3. getting nanotime on linux is slower than on windows and solaris. 4. getting either system time or nano time on linux uses more CPU than windows The versions of windows doesn't make too much difference. I've tested win2K, XP and 7. On linux, it doesn't matter which distribution, since it is a feature of the kernel. I've had discussion on this topic of henrik stahl, who used to lead JRockit at BEA. Since JMeter gets a timestamp at the start and end of a request, it is getting time frequently. This easily accounts for performance difference between running JMeter on windows versus linux. The difference depends on your stress test. for example, say I'm testing webpages that are small and fast average 100ms per request. The percent of time spent getting timestamp is going to be a higher percent of the total CPU time. In contrast, if I'm testing big webpages that take 60 seconds to load, the percent time spent getting timestamp is less. This is true of any kind of stress test running in Java. I've done this with simple POJO that call a main method, JUnit tests, custom test framework and JMeter. Basically, the performance difference a developer might see between linux and windows with JMeter is the result of the JVM + OS. It has nothing to do with JMeter :) On Wed, Dec 14, 2011 at 8:59 AM, Deepak Goel <[email protected]> wrote: > @Peter > > can you please combine your two mails and restate what you are trying > to point out. Seems they mean different things: > > ---------------------- > Getting currentTimeMillis and nano time has a higher overhead on "linux > versus windows" > > The difference between using currentTimeMillis versus nano time is > about 20-30% overhead "regardless of the operating system" or version of > JVM. > ---------------------- > > Also can you please mention exactly what hardware have you measured > your results for? > > On 12/14/11, Peter Lin <[email protected]> wrote: >> I'll add a little bit more. >> >> The difference between using currentTimeMillis versus nano time is >> about 20-30% overhead regardless of the operating system or version of >> JVM. >> >> I've seen this first hand with Sun, IBM and JRockit on windows and linux. >> >> OpenJDK is mostly the same as SunJDK, so there's very little >> difference from a performance perspective. the SunJDK usually doesn't >> include the experimental stuff that OpenJDK might have. >> >> On Wed, Dec 14, 2011 at 7:41 AM, Deepak Goel <[email protected]> wrote: >>> Hey >>> >>> Looking at your configuration, here is a possible theory... >>> >>> Sun Microsystem (Sun JDK) was eaten by Oracle which runs on WINTEL >>> platforms so the performance of SUN JDK is optimized on INTEL >>> platforms. OpenJDK is meant for Linux platforms a late entry for INTEL >>> into this game and hence low performance and high CPU peaks... >>> >>> Deepak >>> >>> On 12/14/11, Toni Menendez Lopez <[email protected]> wrote: >>>> My loadserver is running in this server, >>>> >>>> Hardware : >>>> >>>> Proliant BL460C G1 >>>> 2xIntel Xeon @2,53Ghz (quad) >>>> 32 GB of memory >>>> >>>> O.S : >>>> RHEL5.4(Tikanga) >>>> >>>> I don´t have stats about that but I will collect in few days that I >>>> will have again the server available, but my impression is that JMeter >>>> is taking much more CPU with OpenJDK and is doing lots of big peaks, >>>> seems problems with GC. >>>> >>>> But I will analyze it later, when my actual testing finished. >>>> >>>> Toni. >>>> >>>> >>>> 2011/12/13, Deepak Goel <[email protected]>: >>>>> Hey >>>>> >>>>> Looks like an evolution and quality problem..Sun JDK more evolved v/s >>>>> OpenJDK >>>>> >>>>> What is the hardware? What is the performance difference? Stats >>>>> please... >>>>> >>>>> Deepak >>>>> >>>>> On 12/13/11, Toni Menendez Lopez <[email protected]> wrote: >>>>>> Hello all, >>>>>> >>>>>> I want to ask all of you on question ! >>>>>> >>>>>> I am normally working with SunJDK for Jmeter and running in non-gui >>>>>> mode, but now I want to migrate the openJDK ( OpenJDK 64-Bit Server VM >>>>>> (build 1.6.0-b09, mixed mode)). >>>>>> >>>>>> I have executed the same test in SunJDK and OpenJDK and I have >>>>>> experienced that Jmeter has worst performance sending the traffic with >>>>>> OPenJDK that with SunJDK. >>>>>> >>>>>> Any of you have got some similar experience ? >>>>>> >>>>>> My O.S is RHEL5.4 >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Toni. >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: [email protected] >>>>>> For additional commands, e-mail: [email protected] >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Namaskara~Nalama~Guten Tag~Bonjour >>>>> >>>>> >>>>> -- >>>>> Keigu >>>>> >>>>> Deepak >>>>> +91-9765089593 >>>>> [email protected] >>>>> http://www.simtree.net >>>>> >>>>> Skype: thumsupdeicool >>>>> Google talk: deicool >>>>> Blog: http://loveandfearless.wordpress.com >>>>> Facebook: http://www.facebook.com/deicool >>>>> >>>>> "Contribute to the world, environment and more : >>>>> http://www.gridrepublic.org >>>>> " >>>>> >>>>> --------------------------------------------------------------------- >>>>> 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] >>>> >>>> >>> >>> >>> -- >>> Namaskara~Nalama~Guten Tag~Bonjour >>> >>> >>> -- >>> Keigu >>> >>> Deepak >>> +91-9765089593 >>> [email protected] >>> http://www.simtree.net >>> >>> Skype: thumsupdeicool >>> Google talk: deicool >>> Blog: http://loveandfearless.wordpress.com >>> Facebook: http://www.facebook.com/deicool >>> >>> "Contribute to the world, environment and more : >>> http://www.gridrepublic.org >>> " >>> >>> --------------------------------------------------------------------- >>> 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] >> >> > > > -- > Namaskara~Nalama~Guten Tag~Bonjour > > > -- > Keigu > > Deepak > +91-9765089593 > [email protected] > http://www.simtree.net > > Skype: thumsupdeicool > Google talk: deicool > Blog: http://loveandfearless.wordpress.com > Facebook: http://www.facebook.com/deicool > > "Contribute to the world, environment and more : http://www.gridrepublic.org > " > > --------------------------------------------------------------------- > 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]
