Update README.md
This commit is contained in:
21
README.md
21
README.md
@@ -282,3 +282,24 @@ TinySTL
|
||||
|
||||
binary_search_tree height = 10000
|
||||
avl_tree height = 14
|
||||
|
||||
|
||||
####(10):list<int>
|
||||
|
||||
TinySTL::list<int> list;
|
||||
//std::list<int> list;
|
||||
const size_t max = 100000;
|
||||
ProfilerInstance::start();
|
||||
for (size_t i = 0; i != max; ++i)
|
||||
list.push_back(i);
|
||||
ProfilerInstance::finish();
|
||||
ProfilerInstance::dumpDuringTime();
|
||||
|
||||
|container|quantity|time(ms)|
|
||||
|---------|--------|--------|
|
||||
|TinySTL::list<int>|10万|4|
|
||||
|TinySTL::list<int>|100万|33|
|
||||
|TinySTL::list<int>|1000万|286|
|
||||
|std::list<int>|10万|189|
|
||||
|std::list<int>|100万|1774|
|
||||
|std::list<int>|1000万|17571|
|
||||
|
||||
Reference in New Issue
Block a user