Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

javajedi

macrumors member
Oct 8, 2002
34
0
FPMathTest

Someone inquired about the benchmark Java console program I created:


It's located at http://members.ij.net/javajedi

I've also included the source (FPMathTest.java) for the curious.

Download the class file and invoke it from Terminal via "java FPMathTest"

I must warn you in advance my PowerBook G4 performs miserabily. It does not utilize Altivec(G4), SSE2(P4), or other vector processing extensions.

Enjoy :)

Kevin
 

alex_ant

macrumors 68020
Feb 5, 2002
2,473
0
All up in your bidness
Originally posted by gopher
Maybe we have, but nobody has provided compelling evidence to the contrary.

You must be joking. Reference after reference has been provided and you simply break from the thread, only to re-emerge in another thread later. This has happened at least twice now that I can remember.
The Mac hardware is capable of 18 billion floating calculations a second. Whether the software takes advantage of it that's another issue entirely.

My arse is capable of making 8-pound turds, but whether or not I eat enough baked beans to take advantage of that is another issue entirely. In other words,

18 gigaflops = about as likely as an 8-pound turd in my toilet. Possible, yes (under the most severely ridiculous condtions). Real-world, no.
If someone is going to argue that Macs don't have good floating point performance, just look at the specs.

For the - what is this, fifth? - time now: AltiVec is incapable of double precision, and is capable of accelerating only that code which is written specifically to take advantage of it. Which is some of it. Which means any high "gigaflops" performance quotes deserve large asterisks next to them.
If they really want good performance and aren't getting it they need to contact their favorite developer to work with the specs and Apple's developer relations.

Exactly, this is the whole problem - if a developer wants good performance and can't get it, they have to jump through hoops and waste time and money that they shouldn't have to waste.
Apple provides the hardware, it is up to developer companies to utilize the hardware the best way they can. If they can't utilize Apple's hardware to its most efficient mode, then they should find better developers.

Way to encourage Mac development, huh? "Hey guys, come develop for our platform! We've got a 3.5% national desktop market share and a 2% world desktop market share, and we have an uncertain future! We want YOU to spend time and money porting your software to OUR platform, and on top of that, we want YOU to go the extra mile to waste time and money that you shouldn't have to waste just to ensure that your code doesn't run like a dog on our ancient wack-job hack of a processor!"
If you are going to complain that Apple doesn't have good floating point performance, don't use a PC biased spec like Specfp.

"PC biased spec like SPECfp?" Yes, the reason PPC does so poorly in SPEC is because SPECfp is biased towards Intel, AMD, Sun, MIPS, HP/Compaq, and IBM (all of whose chips blow the G4 out of the water, and not only the x86 chips - the workstation and server chips too, literally ALL of them), and Apple's miserable performance is a conspiracy engineered by The Man, right?
Go by actual floating point calculations a second.

Why? FLOPS is as dumb a benchmark as MIPS. That's the reason cross-platform benchmarks exist.
Nobody has shown anything to say that PCs can do more floating point calculations a second. And until someone does I stand by my claim.
An Athlon 1700+ scores about what, 575 in SPECfp2000 (depending on the system)? Results for the 1.25GHz G4 are unavailable (because Apple is ashamed to publish them), but the 1GHz does about 175. Let's be very gracious and assume the new GCC has got the 1.25GHz G4 up to 300. That's STILL terrible. So how about an accurate summary of the G4's floating point performance:

On the whole, poor.******

* Very strong on applications well-suited to AltiVec and optimized to take advantage of it.
** But these are relatively few.
*** And optimizing for it costs time and money.
**** Miserable on all double-precision floating point under all circumstances.
***** Miserable on all integer code under all circumstances.
****** Miserable on standard cross-platform code.

There you have it, G4 performance in a nutshell.
 

alex_ant

macrumors 68020
Feb 5, 2002
2,473
0
All up in your bidness
Originally posted by Abercrombieboy
Alex ant has made some good points on why Macs are a poor buy. They are so much slower and less stable then PC's these days according to everything I read.
Macs aren't a poor buy, though... they're only a poor buy if your primary concern is maximum performance. I doubt they're any less stable than PCs. They are slower, but in my experience they are much more enjoyable computers to use. You will have to weigh your need for performance against this.
 

alex_ant

macrumors 68020
Feb 5, 2002
2,473
0
All up in your bidness
Originally posted by gopher
Spec fp is extremely biased because it assumes the case of zero error code. It doesn't measure raw performance like floating point calculations per second does. When errors occur in code, the Pentium grinds to a halt, sometimes even making the Pentium IV slower than the Pentium III that is a whole Ghz slower!

I have a question for you:

Why does the Motorola G4 do so poorly in SPEC, while:

The MIPS R12000 & R14000,
The Intel Pentium III, 4 & Celeron,
The AMD Athlon,
The HP/Compaq PA-RISC,
The HP/Compaq Alpha,
The Sun SPARC,
The IBM Power3 & Power4,

all thoroughly trounce it? Only the Athlon and Pentium are x86 compatible. The MIPS R12000 only runs at 500MHz and it still kicks the snot out of the 1GHz G4. Why is that? Honestly, you don't believe Apple is at the mercy of a vast conspiracy which is the plot of SPEC and the processor manufacturers, do you?
When RC5 and Genentech tests prove that raw performance the G4 is much faster than the Pentium IV or AMD, which it does, then it basically throws out the whole idea that Mhz matters. The G4 is 4 to 5 times faster.

At certain highly specialized tasks, yes. Because these are two of the very few tasks which are ABLE with ANY amount of tweaking to perform well on the G4.
As for hand optimizing code, you don't have to do it. What you do have to do is write developers of your software if you are displeased with how poorly they optimize code, or go seek better written software.

Great idea.

Dear Microsoft,

I am displeased with the performance of Word v.X on my Mac (PowerBook G4 667). The cursor always seems to lag, and the application doesn't respond nearly as quickly as it does on my similar PC notebook. Could you like, fix this? Throw a little AltiVec in there, couldn't cost you more than $50,000.

Thanks,
Joe User
As for other factors which influence speed, let's look at the internet browsing which people constantly harp about being slower on a Mac than a PC. My 768/128 DSL on my G4/800 Flat Panel iMac is easily 5 times faster browsing webpages than my T-3 based Windows 2000 Pentium III 1 Ghz machine. I wait and wait on this Pentium III. Goes to show you processor isn't everything.

So your argument has changed from "the G4 isn't slow" to "processor isn't everything anyway?"
It is in software, and until people realize it is in the software, complaining about hardware is not going to matter a hill of beans.

Of course "it is in the software." "It" is also in the hardware. "It" is in both. Apple needs faster software. They have been improving in that area. They need faster hardware as well. They have not been improving nearly as much as they need to be in that area.
64 bit processors are so slow to be developed because so few people have made their software optimized for 64 bit operations. If people need it, they'll get it. For 99% of computer use processor speed of machines nowadays is more than adequate both on PC and the Mac. Adding peripherals though is much easier on the Mac, and installing and removing software still is much easier on the Mac without causing a crash. And ease also means less time spent. So what does speed of the machine have to do with productivity when machines like PCs are so hard to manage? Nothing! Because when it is easier, it takes less time. That's the Mac advantage.
Finally, something you said that I agree with!
 

alex_ant

macrumors 68020
Feb 5, 2002
2,473
0
All up in your bidness
Originally posted by gopher
Only we have some people come on this board who claim that the Mac is much slower. For what purpose?

To show people that Macs are not as fast as Apple claims them to be, and to send Apple a message that they need to get their hardware in gear already. "We" want Apple to succeed as much as you do. What we don't want is for Apple to become complacent, as it has recently, and sell nothing but high-priced boxes full of yesterday's technology. (PC100/133 across the board, and crippled DDR in the Power Macs. No Firewire2, no USB2, no ATA-133. Is this 2002 or is it 1999?)
And Arne, if you are reading these boards, please delete clearly PC biased hate posts ASAP.
Silence your opposition - fabulous.
 

javajedi

macrumors member
Oct 8, 2002
34
0
amen brother!

Alex, thank you for setting the record straight. I am so sick and tired of hearing the over and over highly fallacious arguments. In many ways these ppl are worse than Windows bigots. They *think* they are educated but aren't; at least Windows bigots don't pretend.

I can personally vouch for the miserable performance on double-precision floating point: The Java test I made is a simple timing comparison of a double-loop of 200,000,000 type double fp ops (multiply,square root, and addition).

Lower scores are better:

G4 800: 104251
P4 2.6: 5890

*VIA C3 Ezra: 103043


Incidentally I ran the test on my linux "cube" box. Actually more of a rectangle- but hey? :) Looks like this http://www.tech-report.com/reviews/2001q4/shuttle-sv24/index.x?pg=1

Anyways, I put in a VIA C3 processor. 800 mhz, runs very cool, no fan required. The chip is extremely reasonable.. I paid $29 for it 3 months ago. In my benchmark this low end, elcheapo $29 chip outperformed/equaled my $3500 PowerBook.

Jesus Jumping Christ ppl.. wake up and listen to what alex is saying; he is *NOT* arbitrarily pulling this out of his ass.

You may hear a bunch of flames from others, but not me. I for one (and many others on this board) thank you for taking the time. Regardless though, no matter what, there will always be those individuals that will not listen to logic and reason. Instead they will dismiss the truth along with anyone and everything as being “PC biased”. People need to stop treating this like religion and start being real.
 

DakotaGuy

macrumors 601
Jan 14, 2002
4,229
3,792
South Dakota, USA
I headed into the city after I was done teaching today and decided to go into the Gateway Country store and check out the new PC's. They are FAST and XP does seem just as nice as OSX. The guy quoted me some great prices as well. I want an all in one so I am looking at getting a new Profile. The guy told me that it is a lot faster then the iMac because the iMac has only 800MHz and even the cheapest Profile has a 1.7 Ghz processor. I use a computer at home for things like internet, email, digital photography, MP3's, etc. He showed me how great XP handles all of that stuff. I was impressed, before everyone slams the PC they really should go out and check out the new ones running XP.

Like I said before I never considered getting a PC, but after reading comments over and over by people on here I can see their point on what computer is becoming a better value for people like me who use a computer like I do.

It will probably be about a year until I get a new computer, I feel comfortable with the Mac and I do like OSX, but they seem like they are becoming poorer and poorer machines. My magical price point is around $1200-$1500 and I can't go over that. Like I said before it will probably be a year before I actually upgrade my desktop. I love my iBook and won't part with that, but I might try a Profile for a new desktop. I like the new eMac for the price, but by next year the eMac might be at 1 GHz but the Profile will probably be at 3Ghz and it just seems like a very poor value for the price.
 

javajedi

macrumors member
Oct 8, 2002
34
0
Absolutely. That's why I felt it was so important to comment. The Apple hardware has been standstill. I don't like this anymore than the other guy, but unfortunately it's an inescapable fact. A select few of the people here have become complacent over status-quo, old technology and don't even realize it. These people are doing both themselves and Apple a disservice.


I also think it's very important in this day in age to keep an open mind. If we look back at history, the m68k machines lagged behind x86. Then along came the 601/604, that turned the tables. Today Mac users are once again behind the times in hardware. Don’t worry though, it won’t always be like this. By the time you are ready to buy a new desktop I’m optimistic that Apple will have a solution to the G4 problem. Also keep in mind that within that 1 year Mac OS X will continue to evolve, it’s only going to get better.

But also keep in mind, (and I don’t think this will be the case) but if that does not happen, and in a year from now you see the Mac platform stuck in the same boat as it is today, it would be incredibly foolish to invest thousands of your hard earned dollars on one.

Good luck!
 

AtomBoy

macrumors newbie
Oct 7, 2002
16
0
Japan
PC or MAC?

I'm kind of caught between a rock and a hard place.

Speed is important for me: CD-burning, video-editing, animation-rendering. For that reason the last computer I bought was a Quicksilver. It was the obvious choice at the time.

I imagined that my next computer would be another Mac to replace my ageing PC. Now it's not so clear. From the informed posts by new P4/XP users on this site it's clear that PC could do the things I want it to do more quickly and, arguably, with comparable stability.

BUT, I'm an expat living in Japan. One huge advantage of OSX is unicode. My Mac has a Japanese OS, which is great for my wife, but when I'm using the Mac I can switch the user language to English. Much of our Japanese software is also unicode compatible, so we can buy one program that can be used in either of our native languages. This is very cost-effective in the long-run.

I'm prepared to wait until next year when, hopefully, Apple will be using G5 chips from IBM that are much closer to those from Intel/AMD. I don't need my Mac to be the fastest computer out there (the advantages of OSX would bridge the gap) but I want it to be comparable if I'm going to shell out the extra bucks.

I don't really want to use XP. On-line activation and security issues still put me off.

If, however, Apple fail to deliver an impressive new hardware set next year, my next computer may well be PC.

I hope not, but you have to be realistic...
 

j763

macrumors 6502a
Nov 25, 2001
660
0
Champaign, IL, USA
Originally posted by TheT
I think Mac users just live in their happy little world and think their computers are still the fastest... well, wake up!

couldn't agree more. you use macs for software not for the absolute $#!+ apple has under-the-hood. i was at this MUG meeting the other day and the question was raised as to whether a mac was the fastest thing out there for graphics. i laughed at the suggestion and said "No way". this guy next to me, who was obviously a mac bigot (not necessarily a bad thing) said "You're wrong. They are the fastest thing out there. The Velocity Engine makes the powermac g4 the fastest machine out there for graphics. Blah blah blah blah blah......". I just turned to him and said "SGI Workstations". that was the end of the conversation (he didn't know what an sgi workstation was).

all that said, i've got a dual 1.25 and it's an excellent machine... but you just have to realise that no, it's not the fastest thing out there.

[ANTI-WINDOWS]
BUT... i'd like to raise this important point. wtf are the win32 users using their CPU power for? Typing up word documents really fast? browsing the web with Internet Exporer v6.000.21312.185726351;SP1? or perhaps having to wait only 10 seconds for windows media player to launch? win32 is simply a craptacular operating system to the extent where it shouldn't be recognized (and i certainly don't recognize it) as a real operating system. mac and *nix (excl. linux-on-the-desktop) is where it's at. get over it.
[/ANTI-WINDOWS]
 
Re: FPMathTest

Originally posted by javajedi
Someone inquired about the benchmark Java console program I created:

It's located at http://members.ij.net/javajedi

I've also included the source (FPMathTest.java) for the curious.

<snip>

Kevin
That was me. :)

Thanks. See above post for my results. I even ported your Java code to C# (so similar, it scared me!) and got slightly lower numbers.

8152, 8151, 8162, 8142, 8172, 8142, 8161, 8152... all for a final average of 8154.25.

[edit: whoa, recently got 7891... running it more to average]
[edit #2: 7891, 7892, 7902, 7891, 7882, 7892, 7882, 7881... all for a final average of 7889.125]

You may have the source code/binary to test on your Windows computer (or Linux, with Mono; or BSD, with Microsoft's ROTOR)--just give me a hoot.
 

ryme4reson

macrumors 6502
Mar 5, 2002
259
0
Cupertino CA
My G4 stinks

Well I tested my G4 933, and I have CHUD tools installed so I can disable my L2 and L3 cache. I also could not get the java to work so I compiled with C++, its the same stuff, but I used time() with gave me seconds, so * 1000 to get the adjusted scores

Here are my scores

933 256L2 2MBL3 79 seconds or 79000
933 NO L2 or L3 124 seconds or 124000
933 L2 only 79 seconds
933 L3 only 79 seconds

Judging by these scores I have to think that CHUD is not working and it only worked with completely disabled. as the diff of 45 seconds.

And you can get CHUD from apple ftp.apple.com

Needless to say it takes me 79 seconds when a PV is completing this in 5-10 seconds, something is wrong!! (the the G4)

Lastly, I have not seen BACKTOTHEMAC telling us how great the G4 is lately, must be installing Win 2K under VPC with a stopwatch in 1 hand, an apple in the other, and a smile on his face...

<EDIT> I am gonna try to run this on my brothers 333 celeron on a 66MHZ bus with 320 RAM, I know my 933 is not the fastest, but maybe it just found its competition. :) </EDIT>
 
Re: My G4 stinks

Originally posted by ryme4reson
<EDIT> I am gonna try to run this on my brothers 333 celeron on a 66MHZ bus with 320 RAM, I know my 933 is not the fastest, but maybe it just found its competition. :) </EDIT>
I had a friend run my C# implementation on his 333MHz Celeron o/c'ed to 375MHz. His result was 108085. *GASP!* 375 MHz Celeron BEATS 933MHz PowerPC G4 (no L2/L3). This is interesting.
 
Originally posted by Backtothemac
These test that this guy puts up are crap! The Athlon is overclocked to be a 2100+, none of the systems have the most current OS. I personally have seen great variations in his tests over the years, and personally, I don't buy it. Why test for single processor functions? The Dual is a DUAL! All of the major Apps are dual aware, as is the OS!

Try that with XP Home.
Quoting your OLD post...

Why would anyone run XP Home on a dual processor. They should be running Windows XP Pro.

But to play the devil's advocate... let's see... Windows can use up to 32 processors (Windows .NET). Try that with Mac OS X! Oh wait, you can't. Of course, no 32-way Power Macs available.

BTW, Steve Jobs has made it clear that since his time at NeXT that it's the software, damn it! If it weren't for his work at NeXT, we would not have the Cocoa library nor Mac OS X.
 

nixd2001

macrumors regular
Aug 21, 2002
179
0
UK
Re: PC or MAC?

Originally posted by AtomBoy
I'm kind of caught between a rock and a hard place.

Speed is important for me: CD-burning, video-editing, animation-rendering. For that reason the last computer I bought was a Quicksilver. It was the obvious choice at the time.

I imagined that my next computer would be another Mac to replace my ageing PC. Now it's not so clear. From the informed posts by new P4/XP users on this site it's clear that PC could do the things I want it to do more quickly and, arguably, with comparable stability.

BUT, I'm an expat living in Japan. One huge advantage of OSX is unicode. My Mac has a Japanese OS, which is great for my wife, but when I'm using the Mac I can switch the user language to English. Much of our Japanese software is also unicode compatible, so we can buy one program that can be used in either of our native languages. This is very cost-effective in the long-run.

I'm prepared to wait until next year when, hopefully, Apple will be using G5 chips from IBM that are much closer to those from Intel/AMD. I don't need my Mac to be the fastest computer out there (the advantages of OSX would bridge the gap) but I want it to be comparable if I'm going to shell out the extra bucks.

I don't really want to use XP. On-line activation and security issues still put me off.

If, however, Apple fail to deliver an impressive new hardware set next year, my next computer may well be PC.

I hope not, but you have to be realistic...

As a rule of thumb, there will always be a faster machine available if you're prepared to spend more, and whatever you buy will become obsolete somewhere between next day and next year. If speed is the only consideration, you'll probably be disappointed whatever you do and whenever you do it.

Decide your budget. Decide what you want to do with it. Find a shop where you can try it and see if it works for you. Work on the basis that you won't get the perfect machine, so decide whether whatever you're considering is good enough. Consider the software you'll want (and it's price!) as well as the hardware. Work on the basis that different people want different things from their computer(s) and get something that matchs your needs rather than whichever gets the loudest shouts for (or against).

And no, I'm not going to try and make a recommendation because I don't know enough about the ins and outs of all the details of what will meet your requirements.
 

D*I*S_Frontman

macrumors 6502
May 20, 2002
461
28
Appleton,WI
I love my Macs. I love OS X. Having a reliable machine running unobtrusively and intuitively makes me more productive and lets me enjoy the process more.

That being said, I am now pretty much immune to the reality distortion field that surrounds Steve Jobs. High-end Macs are dog-slow at most things when compared with high-end AMD/Intel offerings. On the occasional perfectly-tweaked AltiVec intensive tasks a Dual G4 can just barely eek out a frog hair margin victory over the competition. Otherwise they get smoked.

The software side of Apple is doing great things, however. When good ol' Steve said Apple would be "innovating" its way through the recession, this has got to be what he meant. And they are succeeding on that front. OS X spanks all comers when it comes to features, interface, and stability. NO contest.

I think everyone knows that the latest Mac offerings are stop-gap measures. Steve is treading water calmly, trying not to panic, waiting on his two primary chip manifacturers, IBM and Motorola, to deliver the real world processors the R&D has been promising for some time now and rescue Apple.

Not to say Apple is in immediate financial trouble. With Steve at the helm, Apple will continue to be profitable. Apple is in serious credibility trouble, however, among professionals due to lackluster performance. 100mhz mobos are a complete joke for $1k + systems and 167mhz top speed with crippled DDR as the best available? Yikes.

Mac people don't expect the world. We just want machines on par with the rest of the computing world, because we KNOW we already have far and away the best OS working environment. We just don't have that right now. It is my hope that IBM will charge in like the Cavalry and drop a powerful new chip in Apple's lap that will bring Macs right back to the top performance-wise.

Then those switch ads will have some teeth.
 

jefhatfield

Retired
Jul 9, 2000
8,803
0
Originally posted by alex_ant

Macs aren't a poor buy, though... they're only a poor buy if your primary concern is maximum performance. I doubt they're any less stable than PCs. They are slower, but in my experience they are much more enjoyable computers to use. You will have to weigh your need for performance against this.

i agree with your balanced comment

it has to be better than, "macs rule all the time or pcs rule all the time"

things are just not that black and white:p
 

benixau

macrumors 65816
Oct 9, 2002
1,307
0
Sydney, Australia
Dear lord,

If you have any heart for 25 million of your wiser men, please make apple use the power4 chip at lightning speeds, and please lord, do it soon. It is becoming hard for us mac men to defend ourselves.

PS. If you could give me a brand new top of the line mac while your at it i wouldnt mind either.


Edit: There is no blasphemy intended here
 

TheFink

macrumors member
Sep 26, 2002
39
0
Originally posted by alex_ant
My arse is capable of making 8-pound turds, but whether or not I eat enough baked beans to take advantage of that is another issue entirely. In other words,

18 gigaflops = about as likely as an 8-pound turd in my toilet. Possible, yes (under the most severely ridiculous condtions). Real-world, no.

Do you have any pics of your closest attempt at an 8 lb turd?
 

jefhatfield

Retired
Jul 9, 2000
8,803
0
Originally posted by benixau
Dear lord,

If you have any heart for 25 million of your wiser men, please make apple use the power4 chip at lightning speeds, and please lord, do it soon. It is becoming hard for us mac men to defend ourselves.

PS. If you could give me a brand new top of the line mac while your at it i wouldnt mind either.


Edit: There is no blasphemy intended here

it reminds me of that janis joplin song...imagine the music in the background ;)

when motorola was stuck at 500 mhz for 18 months, then i started becoming very vocal about dropping them on the high end stuff and going to ibm when there were rumors that they can make a faster chip

but motorola has climbed, though somewhat slowly, out of their pit, and are doing ok

sure, it may be many months ahead when the pcs hit 3.5 ghz+, but i think motorola will deliver a 2 ghz chip sometime next year

and really, after 2 ghz, does anyone think speed will be a top five factor in why one buys a machine?

when i was a computer salesman in 1999, speed and price were the top two issues...and while price will remain a top issue until all computers get really cheap, i think speed will diminish in its importance for the average consumer

many seem to like the dual 1.25 ghz machines and we know apple will speed bump their whole line of powermacs early next year, if not sooner

a lot of the complaints about apple's speed on their machines sound like a lot of benchmark stats reading and not real world usage

most of us do email, internet, word processing, spreadsheets, and light graphics most of the time in the majority of users in the field...of the many machines i sold, i did not come across one high end graphics user or audio professional who needed more than our store was able to provide them
 

benixau

macrumors 65816
Oct 9, 2002
1,307
0
Sydney, Australia
maybe, anyway I tell my buddies that a mac works. It is great to have all that speed but here is a thought:

I have a PC that is really 5x as fast as a mac
I spend 5x as long setting it up as i do the mac
I am also 5x less productive on it then a mac as it keeps breaking

I may not be a great mathematician but 5x5 = 25. 25x less usable than a mac. Personal experience proves this.

Long Live King Mac!! Long Live King Mac!!

For the dark side to wonder at how easy I get my life done
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.