![](http://investorshub.advfn.com/images/default_ih_profile2_4848.jpg?cb=0)
Tuesday, March 16, 2004 3:46:53 AM
I compiled up an off-the-shelf standalone qsort c program using gcc and various targets. I sorted 100M randomly generated integers, and I used the same set of integers for each run.
The systems are identical other than one is using x86-64 Linux. The base versions are the same. Running Opteron 246's with 4G of memory. This benchmark is not memory constrained in any way.
I took the average of 3 runs for each. The deviation was around 1/4 second for each run. Note that a significant portion of the time below is just reading in the file that contains the 100M random integers. I intend to benchmark again with this factored out, as it will probably multiply the percentages below by a factor of 2.
o/s app optimized runtime performance
compile? increase
----------------------------------------------------
32-bit 32-bit no 97 seconds baseline
64-bit 32-bit no 94 seconds +3%
64-bit 64-bit no 110 seconds -13%
32-bit 32-bit yes 84 seconds baseline
64-bit 32-bit yes 81 seconds +4%
64-bit 64-bit yes 70 seconds +17%
The optimized app utilizes the extra registers available in 64-bit mode. The unoptimized 64-bit app takes a hit due to larger pointers, etc., as expected. Note how the 32-bit app without a recompile actually runs slightly faster on the 64-bit os. I expect the same from Windows. Actually I expect more of an improvement because I think Windows system code can be optimized more than Linux can.
The data above shows that 64-bit vs. 32-bit hurts this app, but the extra registers in x86_64 more than make up for it. Apps that need 64-bit data structures will likely have a gain instead of a loss. Maybe for my next test I'll qsort 64 bit integers.
HailMary
Recent AMD News
- Nasdaq Tech Stocks Show Partial Recovery; Oil Prices Rise • IH Market News • 07/18/2024 10:01:11 AM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 07/17/2024 08:07:35 PM
- AMD to Report Fiscal Second Quarter 2024 Financial Results • GlobeNewswire Inc. • 07/16/2024 08:15:00 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 07/16/2024 08:13:20 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 07/15/2024 08:05:20 PM
- Costco Hikes Membership Fees; ON Semiconductor Stock Drops 3%; WD-40 Soars 13% on Strong Q3 Earnings • IH Market News • 07/11/2024 10:17:26 AM
- AMD to Acquire Silo AI to Expand Enterprise AI Solutions Globally • GlobeNewswire Inc. • 07/10/2024 01:05:00 PM
- U.S. Stock Futures Rise Amid Focus on Fed Chairman Powell’s Speech, Oil Prices Fall • IH Market News • 07/09/2024 10:56:09 AM
- U.S. Stocks Close On Mixed Note; Nasdaq, S&P Hit Record Closing Highs • IH Market News • 07/08/2024 08:48:15 PM
- U.S. Index Futures Modestly Higher Before Key Economic Data Release; Early Closure for July 4th Holiday • IH Market News • 07/03/2024 11:01:33 AM
- Major Averages Close On Firm Note As Stocks Rally After Early Struggle • IH Market News • 07/02/2024 08:44:00 PM
- Honeywell Acquires CAES Systems for $1.9 Billion, Sarepta Therapeutics Surges 34%, Gilead Continues Gains • IH Market News • 06/21/2024 12:00:38 PM
- Trump Media Resells Stocks and Warrants; KB Home Exceeds Q2 Expectations, and More News • IH Market News • 06/20/2024 10:55:11 AM
- AMD to Power AI-Based Smart Parking Solution for Sun Singapore, the Country’s Largest Provider of Smart Parking Services • GlobeNewswire Inc. • 06/19/2024 01:00:00 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/18/2024 08:18:09 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/18/2024 08:12:29 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 06/14/2024 08:03:45 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/13/2024 08:14:12 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/12/2024 08:34:23 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/11/2024 09:40:41 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 06/10/2024 09:22:35 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/10/2024 08:16:19 PM
- AMD to Present at the UBS Women in Tech Summit • GlobeNewswire Inc. • 06/10/2024 01:15:00 PM
- Apple Showcases AI at WWDC 2024, Nvidia Stock Split Starts Today, and More News • IH Market News • 06/10/2024 11:29:44 AM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 06/07/2024 08:16:25 PM
FEATURED North Bay Resources Acquires Mt. Vernon Gold Mine, Sierra County, California, with Assays up to 4.8 oz. Au per Ton • Jul 18, 2024 9:00 AM
VAYK Expects Revenue from First Airbnb Property Starting from August • VAYK • Jul 18, 2024 9:00 AM
Nightfood Holdings Signs Letter of Intent for All-Stock Acquisition of CarryOutSupplies.com • NGTF • Jul 17, 2024 1:00 PM
Kona Gold Beverages Reaches Out to Largest Debt Holder for Debt Purchase Negotiation • KGKG • Jul 17, 2024 9:00 AM
Avant Technologies Welcomes Back Former CEO with Eye Toward Future Growth and Expansion • AVAI • Jul 17, 2024 8:00 AM
HealthLynked Expands Telemedicine Nationwide • HLYK • Jul 17, 2024 8:00 AM