Java's performance far better that optimized C++

D

David Hopwood

Roedy said:
the key is obviously the improved method calls. This is done though
inlining. The big advantage hotspotting has is knowing what to
inline. Inlining everything just gobbles up RAM with no payback.

Although note that gcc was run with -O2, which does not inline at all.
gcc -O3 would have been a more reasonable comparison.

A more interesting question: why does anyone pay any attention to
microbenchmarks?

David Hopwood <[email protected]>
 
E

EventHelix.com

Not sure if GCC is the best optimized compiler. May be these tests
should be rerun with MS C++ compiler on Windows and Intel C++ 8.0 on
Linux.

Sandeep
 
R

Roedy Green

Benchmarks are management fodder, and often the source of bad decisions.

Focusing on benchmarks is often being penny wise and pound foolish.

What counts is getting the product out the door on time, bug free on
budget, and doing that release after release. Whether it runs 5%
faster nobody will notice.

In fact for many programs it has to run 100% faster for it to be even
psychologically noticeable.

If you have a bottleneck you will get far more return on your time and
money by profiling and tuning the critical section, especially
choosing a smarter algorithm, than you ever will by backing off to a
more manual language that introduces far more problems than it solves.
 
S

Sudsy

JTK said:
Just one:

BAAAAAAAAAAAAAAAAAAAAAAAAAHAHAHHAHAHAHAHHAAAAAAAAAAAAA!!!!!

Jesus von Neumann CHRIST you Javapologists, GIVE IT THE HELL UP ALREADY!

How about one which has some semblance of intelligence behind it...
Or perhaps signs of more than a couple of neurons firing...
Perchance more than it would take to jerk the knee?
 

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,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top