Google Groups Home
Help | Sign in
Message from discussion Performance characteristics of mutable static primitives?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Charles Oliver Nutter  
View profile
 More options Apr 2, 11:51 am
From: Charles Oliver Nutter <charles.nut...@sun.com>
Date: Wed, 02 Apr 2008 16:51:30 +0100
Local: Wed, Apr 2 2008 11:51 am
Subject: Re: [jvm-l] Re: Performance characteristics of mutable static primitives?

Jochen Theodorou wrote:
> I think there is not enough data to see a trend. I modified your test,
> made it run from 1-20 threads and for 50 loops, making an average time
> containing the time it took to execute all threads and put these in a
> diagram. I used a Q6600 Quadcore intel CPU with java 1.6.0_03-b05 on
> Linux 2.6.22-14-generic #1 SMP x86_64 GNU/Linux. What I can see is that
> the time constantly goes up until 4 Threads are reached, my number of
> CPUs. Using 5 threads is takes less time than using 4, but after that
> the time looks more or less constant.

> This looks quite scalable to me.

You did notice the code splits the number of iterations by the number of
threads, right? At the very least, the amount of time taken to run all
threads should go down.

Run the same test in Java 5 and you'll see that Java 6 does not scale
properly at all for this test.

- Charlie


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google