This scenario comprises the following FastFormat code, and functional equivalents for all other libraries examined:
static const void* args[] =
{
&counter, &tm_IOStreams, &tm_Boost, &tm_Loki, &tm_CString_Format, &tm_Streams, &tm_FF_Format, &tm_FF_Write
};
{ for(unsigned i = 0; i < ITERATIONS; ++i)
{
{ for(unsigned k = 0; k != STLSOFT_NUM_ELEMENTS(args); ++k)
{
std::string s;
fastformat::fmt(sink, "{0}", args[k]);
}}
}}
This is the
test/performance/performance.test.one_pointer
performance test included in the
FastFormat 0.2.1 beta 6 distribution.
|
|
|