Improved english and documentation design for #5576.

[SVN r72225]
This commit is contained in:
Antony Polukhin
2011-05-27 18:32:57 +00:00
parent b0b1ce9453
commit ccaa3059e8

View File

@@ -318,15 +318,11 @@ Eliminate an overhead of <code>std::locale</code> if your program runs in the "C
<hr>
<h2><a name="performance">Performance</a></h2>
This table shows the execution speed for 100000 iterations in milliseconds of the following code blocks:
This table shows the execution time in milliseconds for 100000 calls of the following string formatters:
<table border="1" width="100%">
<tr>
<td>From->To</td><td> <code>target = lexical_cast&lt;Target&gt;(source);</code> </td>
<td><code>std::stringstream ss;<br>ss &lt;&lt; source;<br> ss &gt;&gt; target;</code></td>
<td><code>ss &lt;&lt; source;<br> ss &gt;&gt; target;<br>ss.str(std::string());<br>ss.clear();</code></td>
<td><code>sscanf( (const char*)source, <...>, &amp;target);</code> <br>OR<br> <code>sprintf( (char*)buffer, <...>, source);<br>
target = buffer;</code></td></tr>
<tr><td>From->To</td><td> <code>lexical_cast</code> </td><td><code>std::stringstream</code><br>with construction</td><td><code>std::stringstream</code><br>without construction</td><td><code>sscanf</code>/<code>sprintf</code></td></tr>
<tr><td>string->char</td><td bgcolor="#00C000"><1</td><td>91</td><td>7</td><td>10</td></tr>
<tr><td>string->int</td><td bgcolor="#00C000">7</td><td>115</td><td>23</td><td>18</td></tr>
<tr><td>string->unsigned int</td><td bgcolor="#00C000">7</td><td>117</td><td>22</td><td>17</td></tr>