Rasmus​.krats​.se

Denna sida på svenska

Posts tagged “performance”

Reminiscing this and that, on the web since 1994.

Optimizing a C++ program

Posted 2005-03-26 12:00. Tagged , , , .

A small case study of how to optimize a C++ program.

A while ago, Michael Strömberg presented a “Quick Java & C# Performance Comparison” on his blog. As a basis for comparison, he included the original C++ reference implementation of the algorithm, a pulse-coupled neural network. The reference program was slower than Michaels java code even on the slowest of the Java environments.

Since I believe that a reasonably sane implementation in C++ has a good chance of outperforming even a well-tuned Java implementation, I decided to take a look at the reference implementation and see if it could be made to run faster. It certainly could.

Read whole Optimizing a C++ program.

Iostream performance in gcc 3.4

Posted 2004-07-21 12:00. Last updated 2004-07-23 12:00. Tagged , , , .

I did a small performance test of gcc 3.4 compared to earlier versions. I think it is safe to say that standard c++ iostreams performance is greatly improved in gcc 3.4.

Update 2004-07-23: Implemented the tests in c as well, as a comparison.

Read whole Iostream performance in gcc 3.4.