Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -52,5 +52,19 @@ TinySTL
|
|||||||
######i = 100000 -> (TinySTL::vector<int>:2ms \\ std::vector<int>:6ms)
|
######i = 100000 -> (TinySTL::vector<int>:2ms \\ std::vector<int>:6ms)
|
||||||
######i = 1000000 -> (TinySTL::vector<int>:11ms \\ std::vector<int>:16ms)
|
######i = 1000000 -> (TinySTL::vector<int>:11ms \\ std::vector<int>:16ms)
|
||||||
######i = 10000000 -> (TinySTL::vector<int>:129ms \\ std::vector<int>:210ms)
|
######i = 10000000 -> (TinySTL::vector<int>:129ms \\ std::vector<int>:210ms)
|
||||||
|
//std::vector<std::string> vec;
|
||||||
|
TinySTL::vector<std::string> vec;
|
||||||
|
ProfilerInstance::start();
|
||||||
|
int i = 0;
|
||||||
|
for (; i != 10000; ++i){
|
||||||
|
vec.push_back(std::string("zouxiaohang"));
|
||||||
|
}
|
||||||
|
ProfilerInstance::finish();
|
||||||
|
ProfilerInstance::dumpDuringTime();
|
||||||
|
|
||||||
|
######i = 100000 -> (TinySTL::vector<int>:18ms \\ std::vector<int>:29ms)
|
||||||
|
######i = 1000000 -> (TinySTL::vector<int>:181ms \\ std::vector<int>:232ms)
|
||||||
|
######i = 10000000 -> (TinySTL::vector<int>:2372ms \\ std::vector<int>:1972ms)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user