Update README.md

This commit is contained in:
邹晓航
2014-09-24 19:08:22 +08:00
parent 18b3119da2
commit 32a8b893d8

View File

@@ -67,6 +67,18 @@ TinySTL
######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)
TinySTL::circular_buffer<int, 10000> cb(10000, 0);
//boost::circular_buffer<int> cb(10000, 0);
ProfilerInstance::start();
for (int i = 0; i != 10000000; ++i){
cb.push_back(i);
}
ProfilerInstance::finish();
ProfilerInstance::dumpDuringTime();
######i = 10000000 -> (TinySTL::circular_buffer75ms \\ boost::circular_buffer22ms)
######i = 100000000 -> (TinySTL::circular_buffer604ms \\ boost::circular_buffer252ms)
######i = 1000000000 -> (TinySTL::circular_buffer5936ms \\ boost::circular_buffer2241ms)