This scenario comprises the following FastFormat code, and functional equivalents for all other libraries examined:
{ for(unsigned i = 0; i < ITERATIONS; ++i) { std::string forename = "Professor"; char surname[] = "Yaffle"; int age = 134; std::string sink; fastformat::fmt(sink, "My name is {0} {1}; I am {2} years old; call me {0}" , forename, surname, age); }}
This is the
test/performance/performance.test.cvu.ex.1
performance test included in the
FastFormat 0.2.1 beta 6 distribution.