Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Performance in MAC OS X



Carlos,

Evaluating performance on such small operations across physically distinct hardware and OSes is bound to bring errors.  Generally if the meter is in milliseconds, additional apps running, memory size & cache can all have significant impact on performance in a transient manner.  It may be better to build a test which runs that operation 1000 times & then compare the total numbers between each since any transient impact would likely be minimized.  As to 1.6, it is still an early release from Apple & is more heavily optimized for Intel than PPC right now, so I would expect it's performance to be slower than both 1.5 & 1.4 especially on an iBook.  Finally, the iBook is a laptop aimed at the lowend consumer market, whereas the P4 2.8GHZ is desktop aimed at a higher portion of the market.  Thus the iBook should be slower than the P4.  A better comparison would be made on a MacBook or iMac(Intel).  There you can run Windows or OS X on the same hardware & directly compare the JVM performance rather than adding in hardware differences.

Niels



On Jul 17, 2006, at 2:44 PM, Carlos Santiago wrote:

Hi Bill.
I have not made tests with graphs.
I have made test of perfomance exactly using different versions of JVM (since 1.3 up to 1.6). 
The test is inspired in the article of Matt Love in http://www.ddj.com/dept/java/188700760 (for example). 
I got resulted better (for the test indicated in the article) in a P4 with Windows XP 2.8Ghz with 1Gb of memory. 
My Mac is one iBook 1,2 with 768Mb of RAM with MAC X 10.4.7 
Some data are: 
Time of execution in the P4 for StringBuffer using JVM 1.3.1_17: 32 ms 
In the Mac with VM 1.3:20 ms 
Same execution now with VM 1.4.2_12: 
P4 - 16ms 
Mac - 17 ms 
Using VM 1.5.0_07: 
P4 - 9 ms! 
Mac - 26 ms! 
Finally with VM 1.6.0-rc-b90 
P4 - 5 ms 
Mac - 136 ms!   
If you if to interest I can send it the complete graphs that I generated. 
Thank´s
Carlos

 
On 7/17/06, Bill Wagner <email@hidden> wrote:
Without more details regarding what the program does, it's difficult to
tell.

My company used to offer a product that did intensive signal processing
and drawing. Linux and Windows were faster because the level of graphics
they support by default was inferior. If we turned on anti-aliasing,
Linux and Windoze would produce higher qualitiy graphics...nearly
equivalent to that on OS X, but their performance became inferior,
whereas OS X remained unphased.

That's just one difference between OS X and Windoze/Linux. As far as OS
X to OSX issues go, I have noticed that Java 1.4.X on Panther gives me
the impression of being faster than the equivalent on Tiger, but I have
never verified this...it just 'seems' faster.

Hope this helps,

Bill Wagner

Carlos Santiago wrote:
> I am using Java 5 and 6 in my MAC (iBook 1.2Ghz with 768MB of
> memory) with MAC OS X 10.4.7, but the performance tests that I have
> made is very slow whether compared with a P4 with Windows XP Profesional
> 2.8Ghz with 1GB of memory.
> Somebody already perceived this?
> Thank´s
> Carlos
>
> --
> ------------------------------------------------------------
> Carlos Santiago
> Analista de Dados - META
> Programador Java - SCJP 1.4
> JCP Member
> Blog: http://macjava.blogspot.com <http://macjava.blogspot.com >
> ------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Java-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/java-dev/email@hidden
>
> This email sent to email@hidden




--
------------------------------------------------------------
Carlos Santiago
Analista de Dados - META
Programador Java - SCJP 1.4
JCP Member
Blog: http://macjava.blogspot.com
------------------------------------------------------------
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Java Performance in MAC OS X (From: "Carlos Santiago" <email@hidden>)
 >Re: Java Performance in MAC OS X (From: Bill Wagner <email@hidden>)
 >Re: Java Performance in MAC OS X (From: "Carlos Santiago" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.