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: Re: Java Performance in MAC OS X





On 7/18/06, Shawn Erickson <email@hidden> wrote:
Using the attached archive I get the following on my MacBook Pro system...

[serickson@Tech-MacBook-Pro :~/test]
[0:538] > sh runtest.sh
Hardware:

   Hardware Overview:

     Machine Name: MacBook Pro 15"
     Machine Model: MacBookPro1,1
     CPU Type: Intel Core Duo
     Number Of Cores: 2
     CPU Speed: 2 GHz
     L2 Cache (shared): 2 MB
     Memory: 1 GB
     Bus Speed: 667 MHz
     Boot ROM Version: MBP11.0055.B02
     SMC Version: 1.2f10
     Sudden Motion Sensor:
         State: Enabled
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
buffer.append('a') x 400,000 - 68(ms)
buffer.append('a') x 400,000 - 56(ms)
buffer.append('a') x 400,000 - 56(ms)
buffer.append('a') x 400,000 - 54(ms)
buffer.append('a') x 400,000 - 55(ms)
buffer.append('a') x 400,000 - 55(ms)
buffer.append('a') x 400,000 - 53(ms)
buffer.append('a') x 400,000 - 55(ms)
buffer.append('a') x 400,000 - 58(ms)
buffer.append('a') x 400,000 - 54(ms)
 
I ran my test class on the same MacBook Pro running Windows XP Pro (native boot via BootCamp) and this is what I get...

C:\Documents and Settings\serickson\My Documents>"C:\Program Files\Java\jdk1.5.0
_06\bin\javac.exe" -target 1.3 -source 1.3 StringTest.java

C:\Documents and Settings\serickson\My Documents>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05 , mixed mode, sharing)

C:\Documents and Settings\serickson\My Documents>java -Xmx32m StringTest
buffer.append('a') x 400,000 - 265(ms)
buffer.append('a') x 400,000 - 79(ms)
buffer.append('a') x 400,000 - 78(ms)
buffer.append('a') x 400,000 - 78(ms)
buffer.append('a') x 400,000 - 78(ms)
buffer.append('a') x 400,000 - 62(ms)
buffer.append('a') x 400,000 - 79(ms)
buffer.append('a') x 400,000 - 78(ms)
buffer.append('a') x 400,000 - 78(ms)
buffer.append ('a') x 400,000 - 62(ms)

(note I don't have any other JVMs installed on this system in the Windows XP)

-Shawn

 

 
 _______________________________________________
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>)
 >Re: Java Performance in MAC OS X (From: Niels Meersschaert <email@hidden>)
 >Re: Java Performance in MAC OS X (From: "Carlos Santiago" <email@hidden>)
 >Re: Re: Java Performance in MAC OS X (From: "Shawn Erickson" <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.