提交 43ccb65a 编写于 作者: 邹晓航

Update README.md

上级 4cae8bee
......@@ -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&lt;int>|10万|4|
|TinySTL::list&lt;int>|100万|33|
|TinySTL::list&lt;int>|1000万|286|
|std::list&lt;int>|10万|189|
|std::list&lt;int>|100万|1774|
|std::list&lt;int>|1000万|17571|
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册