Update README.rst

This commit is contained in:
Victor Zverovich 2015-02-10 19:31:22 -08:00
parent 04a21bbb2e
commit a95b3f7ee1

View File

@ -269,18 +269,20 @@ further details see the `source
============== ======== ============== ========
test name run time test name run time
============== ======== ============== ========
libc printf 1.28s libc printf 1.30s
std::ostream 2.09s std::ostream 1.85s
cppformat 1.32s cppformat 1.42s
tinyformat 2.55s tinyformat 2.25s
boost::format 10.42s boost::format 9.94s
============== ======== ============== ========
As you can see boost::format is much slower than the alternative methods; this As you can see boost::format is much slower than the alternative methods; this
is confirmed by `other tests <http://accu.org/index.php/journals/1539>`_. is confirmed by `other tests <http://accu.org/index.php/journals/1539>`_.
Tinyformat is quite good coming close to IOStreams. Unfortunately tinyformat Tinyformat is quite good coming close to IOStreams. Unfortunately tinyformat
cannot be faster than the IOStreams because it uses them internally. cannot be faster than the IOStreams because it uses them internally.
Performance of format is close to that of printf. Performance of cppformat is close to that of printf. cppformat is [faster on
integer formatting](http://zverovich.net/2013/09/07/integer-to-string-conversion-in-cplusplus.html),
but slower on floating-point formatting which dominates this benchmark.
Compile time and code bloat Compile time and code bloat
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~