473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

64 bit performance speedup over 32 bit

All,

Does anyone know how much performance speedup I can expect by using 64
bit C++ / Windows XP 64 bit over the 32 bit versions?

Did anyone test this under Visual Studio 2005 or Intel C++ 8.1/9.0 ?

My application domain is montecarlo simulations but any test would be
great.

Regards
Lars Schouw

Feb 8 '06 #1
12 2301
Lars Schouw wrote:
Does anyone know how much performance speedup I can expect by using 64
bit C++ / Windows XP 64 bit over the 32 bit versions?
How does one compare a truck with a compact car? One can do 70 mph
with a tons in the back across a muddy terrain and the other can do
45 mpg with two people on board. No, I am not pulling any analogy
between cars, trucks, and systems. Just between comparisons.

In any case, have you tried looking on the Web for some performance
comparisons (benchmarks)? Try www.tomshardware.com, for example.
Did anyone test this under Visual Studio 2005 or Intel C++ 8.1/9.0 ?
I bet somebody has.
My application domain is montecarlo simulations but any test would be
great.


You should probably ask this in a Windows programming newsgroup. Or
better yet, try testing your own programs. If montecarlo simulations
are not that common, perhaps you'll be the first to publish your
findings...

V
--
Please remove capital As from my address when replying by mail
Feb 8 '06 #2
Victor
Thank you for the nice and useful answer. |-)

tomshardware tests ....hardware I want to see how a monte carlo
simulation (software) runs on the same CPU but with a differerent OS
and compiler setting - build for 64 bit

Lars

Feb 8 '06 #3
Lars Schouw wrote:
Victor
Thank you for the nice and useful answer. |-)

tomshardware tests ....hardware I want to see how a monte carlo
simulation (software) runs on the same CPU but with a differerent OS
and compiler setting - build for 64 bit


I think Victor is saying you're better off trying a newsgroup that is
more related to your question. comp.arch, or some MS group on 64 bit
stuff would probably get a useful response. He is right.

As an aside, my experience is that there is a significant speed-up but
this is not because of the inherant "64 bitness" but because going from
32 bit X86 ISA to AMD64 means the compiler has some more registers to
play with and does allows the compiler to do a much better job with code
generation. There is a hit when you start storing 64 bit pointers as
they use twice the memory. My experience with mips 32 bit (o32 and n32)
vs the 64 bit (n64) instructions was that n32 was significantly faster
than n64 on some applications (usually memory bound apps).

In the case of AMD64 vs X86-32, I don't think I've ever seen a
performance regression going to 64 bit.

Every performance question ends up with this answer - "Test it". Only
you are qualified to do that.

Feb 8 '06 #4
Do you think that 64 bit performance is more OS related than compiler
related? So better to move to a more os specific group like W$indows,
Un$x or Lin**x?

I don't really have time to test it myself right now so it would be
great if someone already did it.

Lars

Feb 8 '06 #5
Gianni Mariani wrote:
As an aside, my experience is that there is a significant speed-up but
this is not because of the inherant "64 bitness" but because going from
32 bit X86 ISA to AMD64 means the compiler has some more registers to
play with and does allows the compiler to do a much better job with code
generation.


Agreed, I've seen the same.

--
Ian Collins.
Feb 8 '06 #6
Lars Schouw wrote:
Do you think that 64 bit performance is more OS related than compiler
related? So better to move to a more os specific group like W$indows,
Un$x or Lin**x?

I don't really have time to test it myself right now so it would be
great if someone already did it.


If your code is computationally intensive (which is sounds like it is),
it's most likely bound by the algorithms and the compiler.
Feb 8 '06 #7
Lars Schouw wrote:
Do you think that 64 bit performance is more OS related than compiler
related? So better to move to a more os specific group like W$indows,
Un$x or Lin**x?

Yes.

The topic has been discussed at length on Solaris forums, so I guess it
has on other OS specific groups.

--
Ian Collins.
Feb 8 '06 #8
Ian

I guess the most Solais C++ code is still running on UltraSparc
processors are a little bit different than Intel in arcitecture.
I will have a look in the Solaris usenet group anyway.

Cheers
Lars

Feb 8 '06 #9

Ian Collins wrote:
Gianni Mariani wrote:
As an aside, my experience is that there is a significant speed-up but
this is not because of the inherant "64 bitness" but because going from
32 bit X86 ISA to AMD64 means the compiler has some more registers to
play with and does allows the compiler to do a much better job with code
generation.


Agreed, I've seen the same.


I don't know that there is any noticable improvement using 64 bit code
over 32 bit code. In fact I might go as far as to say 32 bit code is
faster but that could just be my perception. 32 bit systems are
certainly more stable right now.

Feb 8 '06 #10
Lars Schouw wrote:
Ian

I guess the most Solais C++ code is still running on UltraSparc
processors are a little bit different than Intel in arcitecture.
I will have a look in the Solaris usenet group anyway.

Not quite, Solaris has been running on AMD64 for well over a year now
and the native compilers (used to build the OS) are well tuned for 64
bit. There was a lot of interest in performance when it started shipping.

--
Ian Collins.
Feb 8 '06 #11
ro**********@gmail.com wrote:
Ian Collins wrote:
Gianni Mariani wrote:
As an aside, my experience is that there is a significant speed-up but
this is not because of the inherant "64 bitness" but because going from
32 bit X86 ISA to AMD64 means the compiler has some more registers to
play with and does allows the compiler to do a much better job with code
generation.


Agreed, I've seen the same.

I don't know that there is any noticable improvement using 64 bit code
over 32 bit code. In fact I might go as far as to say 32 bit code is
faster but that could just be my perception. 32 bit systems are
certainly more stable right now.

Have you run comparisons?

In Unix land, 64 bit OSs have been shipping for a while (years in some
cases) and are no different in stability to 32 bit ones.

--
Ian Collins.
Feb 8 '06 #12

Ian Collins wrote:
ro**********@gmail.com wrote:
Ian Collins wrote:
Gianni Mariani wrote:

As an aside, my experience is that there is a significant speed-up but
this is not because of the inherant "64 bitness" but because going from
32 bit X86 ISA to AMD64 means the compiler has some more registers to
play with and does allows the compiler to do a much better job with code
generation.

Agreed, I've seen the same.

I don't know that there is any noticable improvement using 64 bit code
over 32 bit code. In fact I might go as far as to say 32 bit code is
faster but that could just be my perception. 32 bit systems are
certainly more stable right now.

Have you run comparisons?


Nope. Just perception like I stated.
In Unix land, 64 bit OSs have been shipping for a while (years in some
cases) and are no different in stability to 32 bit ones.


OS is Linux. Using the 64 bit version introduces many hassles that
aren't problems in 32 bit version.

Feb 8 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Lucas Hofman | last post by:
Hi, Just installed Python 2.4 on a machine (RH8.0 Linux) that also has python 2.3 and python 2.2 installed. The latter came with the linux distribution, the other are compiled from source...
26
by: pembed2003 | last post by:
Hi, I have an application where I use the strncmp function extensively to compare 2 string to see if they are the same or not. Does anyone know a faster replacement for strncmp? I notice there is...
2
by: Jay Loden | last post by:
All, In studying Python, I have predictably run across quite a bit of talk about the GIL and threading in Python. As my day job, I work with a (mostly Java) application that is heavily threaded....
6
by: ALi Shaikh | last post by:
e decided to stay at home to scrutinize is system's HTTP performance. We were upset that our browser only supported HTTP 1.0 and therefore seemed to perform poorly (even though he recently upgraded...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.