diff --git a/lexical_cast.htm b/lexical_cast.htm index 2292d2a..7929dd4 100644 --- a/lexical_cast.htm +++ b/lexical_cast.htm @@ -318,15 +318,11 @@ Eliminate an overhead of std::locale if your program runs in the "C

Performance

-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: - - - - +
From->To target = lexical_cast<Target>(source); std::stringstream ss;
ss << source;
ss >> target;
ss << source;
ss >> target;
ss.str(std::string());
ss.clear();
sscanf( (const char*)source, <...>, &target);
OR
sprintf( (char*)buffer, <...>, source);
- target = buffer;
From->To lexical_cast std::stringstream
with construction
std::stringstream
without construction
sscanf/sprintf
string->char<191710
string->int71152318
string->unsigned int71172217