From 286d98f35a66e05d5f207e4896dcf22ea459fafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Sep 2014 17:34:43 +0800 Subject: [PATCH 1/5] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9c6b0ae..138046e 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,8 @@ TinySTL * STL Algorithms: * fill:100% * fill_n:100% +| Tables | Are | Cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | From ce44f4c78c2a520aef2dff981587209dad80e6ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Sep 2014 17:36:04 +0800 Subject: [PATCH 2/5] Update README.md --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 138046e..4cc5d3c 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,7 @@ TinySTL * STL Algorithms: * fill:100% * fill_n:100% -| Tables | Are | Cool | -| ------------- |:-------------:| -----:| -| col 3 is | right-aligned | $1600 | -| col 2 is | centered | $12 | -| zebra stripes | are neat | $1 | +#测试 +##测试环境:VS2013 release模式 +##测试结果: + From 859d30041b8c081ecb1345746628be6862a58fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Sep 2014 17:36:22 +0800 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4cc5d3c..049e05a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ TinySTL * vector:100% * STL Algorithms: * fill:100% - * fill_n:100% + * fill_n:100% #测试 ##测试环境:VS2013 release模式 ##测试结果: From 54eebdcf6e7a7a882a651f294464955f0ed946e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Sep 2014 19:24:55 +0800 Subject: [PATCH 4/5] Update README.md --- README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 049e05a..4fa267e 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,24 @@ TinySTL * iterator traits:100% * vector:100% * STL Algorithms: - * fill:100% - * fill_n:100% -#测试 -##测试环境:VS2013 release模式 -##测试结果: + * fill:100% + * fill_n:100% + +#TinySTL测试: +###测试环境:Windows 7 && VS2013 && release模式 +###测试结果: + //std::vector vec; + TinySTL::vector vec; + ProfilerInstance::start(); + int i = 0; + for (; i != 10000; ++i){ + vec.push_back(i); + } + ProfilerInstance::finish(); + ProfilerInstance::dumpDuringTime(); + +######i = 100000 -> (TinySTL::vector:2ms \\ std::vector:6ms) +######i = 1000000 -> (TinySTL::vector:11ms \\ std::vector:16ms) +######i = 10000000 -> (TinySTL::vector:129ms \\ std::vector:210ms) + From 4994cc7f724b1b14443c39abb392bb9530cae7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Sep 2014 19:42:23 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4fa267e..2f39a11 100644 --- a/README.md +++ b/README.md @@ -41,16 +41,30 @@ TinySTL ###测试结果: //std::vector vec; TinySTL::vector vec; - ProfilerInstance::start(); - int i = 0; - for (; i != 10000; ++i){ - vec.push_back(i); - } - ProfilerInstance::finish(); - ProfilerInstance::dumpDuringTime(); + ProfilerInstance::start(); + int i = 0; + for (; i != 10000; ++i){ + vec.push_back(i); + } + ProfilerInstance::finish(); + ProfilerInstance::dumpDuringTime(); ######i = 100000 -> (TinySTL::vector:2ms \\ std::vector:6ms) ######i = 1000000 -> (TinySTL::vector:11ms \\ std::vector:16ms) -######i = 10000000 -> (TinySTL::vector:129ms \\ std::vector:210ms) +######i = 10000000 -> (TinySTL::vector:129ms \\ std::vector:210ms) + //std::vector vec; + TinySTL::vector vec; + ProfilerInstance::start(); + int i = 0; + for (; i != 10000; ++i){ + vec.push_back(std::string("zouxiaohang")); + } + ProfilerInstance::finish(); + ProfilerInstance::dumpDuringTime(); + +######i = 100000 -> (TinySTL::vector:18ms \\ std::vector:29ms) +######i = 1000000 -> (TinySTL::vector:181ms \\ std::vector:232ms) +######i = 10000000 -> (TinySTL::vector:2372ms \\ std::vector:1972ms) +