speed of C++ relative to C#.net and Java

R

robinsand

There has been much discussion in these groups about the speed of C++
relative that that of Java for performing given functions and when run
on specified compilers. Does anyone know how C++'s speed compares to
C#.net's? Does it depend on the particular task being executed and the
compiler running the code (or not)?
 
I

Ivan Novick

There has been much discussion in these groups about the speed of C++
relative that that of Java for performing given functions and when run
on specified compilers. Does anyone know how C++'s speed compares to
C#.net's? Does it depend on the particular task being executed and the
compiler running the code (or not)?

Of course it depends on everything. Try timing your code and find out
how long it takes on any platforms you are interested in.

Ivan Novick
http://www.mycppquiz.com
 
T

tragomaskhalos

There has been much discussion in these groups about the speed of C++
relative that that of Java for performing given functions and when run
on specified compilers. Does anyone know how C++'s speed compares to
C#.net's? Does it depend on the particular task being executed and the
compiler running the code (or not)?

Yes it depends on many factors. One apparent constant, however, is
that
Java people seem obsessed with devising benchmarks and scenarios to
demonstrate Java matching or superseding C++ performance - search the
archives of this group for many examples. This is a largely futile
activity,
but sadly too many C++ers get sucked in also. There are significant
reasons
to favour C++ over Java and C# that have nothing to do with
performance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top