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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top