Skip to content

nstream Performance

novalexei edited this page Oct 20, 2017 · 12 revisions

Performance test

This is very quick performance test of various string streams. In this test we write random integer into string using C++ stream and read it back from that string with another stream and make sure that initial and resulting numbers are equal. The contestants:

Here are the result:

stream Execution time (ms) Compiled size (stripped)
std::stringstream 6002 8224
boost::iostreams 4567 24704
nova::stream 3890 8272

Back to the Tutorial