Preface I use the following framework for this performance testing. #include
#include
#include
int main() { struct timeval tv[2]; struct timezone tz; int count = 50000; int elapsed = 0; // .. string initialization gettimeofday(&tv[0], &tz); while(count--)...
from: http://blog.jianingy.com/2008/10/performance-test-on-stdstring.html
Please leave comments to above link