Commit a95b3f7e authored by Victor Zverovich's avatar Victor Zverovich

Update README.rst

parent 04a21bbb
...@@ -269,18 +269,20 @@ further details see the `source ...@@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment