Measuring the Overhead of iostreams

By Ahto Truu

We all know the C++ iostreams' cin and cout objects by default synchronize with the corresponding C stdio streams and with each other. Recently I had a reason to measure the performance hit caused by the overhead. In this short talk I report on the simple test harness I set up and the results I got. Perhaps the results are useful to someone in the audience. More likely, I’ll learn from the audience how to improve my test harness.