Secrets of the PowerPC 970: Why the G5 Runs So Fast
Chris Lozaga - 2003.07.01
My Turn is Low End Mac's column for reader-submitted articles. It's your turn to share your thoughts on all things Mac (or iPhone, iPod, etc.) and write for the Mac web. Email your submission to Dan Knight .
Many aspects of the PowerPC 970 (G5) architecture have been covered in depth since Apple's very welcome announcement of the Power Mac G5 at the WWDC, including greatly enhanced bandwidth and 64-bit addressing. There are some unique aspects of the PPC 970 processor that differentiate it from its competition and make Apple's application benchmark results quite plausible.
FMAC Magic
In some ways, Apple actually understates the floating-point performance of the G5. One of the most common functions used in 3D rendering and games, Photoshop filters, and other media applications is the "Multiply Accumulate." Basically, two numbers are multiplied together and added to a third.
A Pentium 4 requires a minimum of two operations to complete this algorithm, one multiply and one addition.
A PowerPC 970 can perform this common function in one instruction. Because the PowerPC 970 has two floating-point units, it can perform two FMAC functions per clock cycle (maximum theoretical throughput). This is four times the throughput of a Pentium 4.
What about SSE-2?
Intel added a series of vector instructions called SSE-2 to enhance the floating-point performance of the Pentium 4. SSE-2 does not add a Multiply Accumulate instruction to the architecture, but rather it allows the Pentium 4 to perform "packed" operations. This means that it can perform two of the same operation per clock cycle. For example, it could perform two additions or two multiplications per clock cycle (maximum theoretical throughput). In a best case, this would yield half of the performance of the PowerPC 970 when performing Multiply Accumulate functions.
Precisely
The performance comparison above was regarding double precision arithmetic. This is a very precise and computationally intensive level of precision that is required for scientific calculations, ray tracing, and other similar applications.
G5 |
G4 |
Xeon |
|
Floating Point Units |
|
|
|
Double Precision Operations |
|
|
2/clock (SSE-2) |
FMAC Throughput |
|
|
1/clock (SSE-2) |
What about Single Precision?
Single precision is often used in games, filters, and other applications where less precise results are required. The FMAC advantage of the G5 continues to hold true in this scenario. The floating-point units of the G5 have the same ideal throughput for single precision FMAC calculations - two per clock cycle. The Velocity Engine has a peak throughput of four single precision FMACs per clock cycle. Again this doubles the single precision throughput of the Pentium 4.
Why focus on the FMAC?
It is unfair to focus on one instruction when comparing processor performance. My point in illustrating the difference is this: Apple chose very specific applications that flex the floating-point and vector muscle of the G5. The G5 will not exhibit such efficient performance in many applications. Not all floating-point operations can be combined into Multiply-Accumulate operations, requiring that the multiplication or addition be computed on its own. Furthermore, division slows down the floating point of the PowerPC 970 considerably. The SPEC scores for G5 reflect this reality quite well.
Other Neat Tricks
The 970 has a unique vector-permute instruction that gives it an advantage in decryption and similar algorithms. This and its many data-manipulation instructions allow the processor to move bits around inside of a value with aplomb. Also, highly efficient Fast-Fourier algorithms have been written for the Velocity Engine. Fourier transforms are essential to a number of visual processing applications.
The Bottom Line
So what does it all mean? It is very difficult to compare two different architectures, but one very important thing should be clear for Mac users. The Power Mac G5 and the 970 processor are built for the applications we love to use: Photoshop, Final Cut, Shake, Maya, etc.
Almost all applications will see an appreciable boost in speed from the increased system bandwidth and clock speed of the G5, but only some of them will be PC scorchers. The PC has advantages in certain applications as well, and I am sure many of these will come to light in the near future.
It is clear, however, that Apple chose wisely when staging their cook-off at this year's WWDC.
Sources
- AltiVec Instruction Cross-Reference, Developer Connection, Apple
- SSE2 Instructions Set, CPUID.com
- PowerPC G5 Performance Primer, Developer Connection, Apple
Share your perspective on the Mac by emailing with "My Turn" as your subject.
Join us on Facebook. Follow us on Twitter.
Recent My Turn articles
- Back to Mac OS 9 Because It's All I Need, 2011.01.26. Sebastian Patting sold his Intel Macs and went back to PowerPC Macs and Mac OS 9. Here's why.
- Using Low End Macs for Internet Radio, 2008.08.18. When the local public radio station moved classical music to HD radio, it was time to find another way to listen. An old iMac with iTunes solved the problem.
- 'That's Not a Computer', 2008.07.30. Salvaging a broken PowerBook by turning it into a desktop computer.
- More in the My Turn index.
Links for the Day
- Mac of the Day: Mac IIci, introduced 1989.09.20. The fastest Mac to date, the 25 MHz IIci was a real workhorse and a big hit.
- February 12 in LEM history: 99: $4,320 for a 'free' iMac - 01: 10 Commandments of Macintosh - High-end word processing for free - 02: 8 OS X gotchas - Working less with my Mac than with my PC - Microsoft Office v. X - 03: New Zealand's Mac mag - 04: Nothing else is a Mac - 07: On Mighty Toaster Wings - Jobs stirs up DRM hornet's nest - OS X 10.2 best for Classic? - 08: Too much software choice is not a blessing - A month with Windows
- Support Low End Mac
Recent Content on Low End Mac
- Fix Home Button Delay, Tablet the Ultimate Mobile PC, iPad Notebook a Possibility, and More, iOS News Review, 2012.02.10. Also using your iPad at work, two photo editors, a new iPad text editor, Macally's magnetic iPad 2 stand, and more.
- White MacBook Goes End-of-Life, Logitech Touch Mouse Supports Gestures, Firmware Updates, and More, The 'Book Review, 2012.02.10. Also MacBook Air better than any Ultrabook, docks for MacBook Pro models, Intel offers improved SSDs, and more.
- Mac and iOS Browsers: Options Galore, Freeware Forum, 2012.02.10. Safari is adequate on Mac and great on iOS, but the range of good alternatives is stunning. LEM writers share their favorites.
- Apple's Support Lead Shipping, Smartphones Outsell PCs, OS X Ported to ARM by Intern, and More, Mac News Review, 2012.02.10. Also the power of Tex-Edit Plus, Google and Twitter are already censoring the Web, Snow Leopard Security Update, and more.
- LogMeIn: Remote Screen Sharing for the Rest of Us, Alan Zisman, Zis Mac, 2012.02.09. Configuring the Mac's built-in screen sharing to work over the Internet can be difficult or impossible. LogMeIn makes it easy.
- 15 Years Ago Motorola Unveiled the PowerPC G3, Low End Mac Round Table, 2012.02.06. The G3 processor was optimized for real world Mac software and made a big leap forward in efficiency.
- Don't Kill Caps Lock, Learning to Love the iOS Keyboard, and an Adaptive iPad Keyboard, Charles W. Moore, Miscellaneous Ramblings, 2012.02.06. The Caps Lock key has a useful function, the iPad's keyboard really is useful, and checking out an adaptive keyboard for the iPad.
- More links in our archive.
Recent Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- Best 15" MacBook Pro Deals
- Best Power Mac G4 Deals
- Best Mac OS X 10.6 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

