Update README.md

This commit is contained in:
邹晓航
2014-10-10 15:19:04 +08:00
parent 5b0749add5
commit 2de0a75372

View File

@@ -106,5 +106,21 @@ TinySTL
111111111111110111111111111000000
32
字母o没出现
####(5):
//std::string str;
TinySTL::string str;
ProfilerInstance::start();
int i = 0;
for (; i != 1000000; ++i){
str.push_back('x');
}
ProfilerInstance::finish();
ProfilerInstance::dumpDuringTime();
######i = 1000000 -> (TinySTL::string7ms \\ std::string37ms)
######i = 10000000 -> (TinySTL::string39ms \\ std::string229ms)
######i = 100000000 -> (TinySTL::string484ms \\ std::string1965ms)