background preloader

C++

Facebook Twitter

Searchengine

C++ vs Java performance; It's a tie! So a while back I came across this Java vs C++ performance benchmark.

C++ vs Java performance; It's a tie!

It was kind of dated and as the Java VM continues to improve (in addition to the C++ compiler I would presume), I thought it would be interesting to rerun the tests to see what we would end up with. So this is what I did: I started up a new Rackspace Cloud Server of their biggest kind (most CPU and 15.5G RAM) and booted it up with Debian 5.0. I then compiled all the tests and ran them all 25 times each. I used the time utility to measure the elapsed real time used by each test and logged that for later analysis.

Code Blocks.