From 2de0a75372bd9b3fe930337f73ab7a6d49cbfb13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Fri, 10 Oct 2014 15:19:04 +0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index d4e455b..4903361 100644 --- a/README.md +++ b/README.md @@ -106,5 +106,21 @@ TinySTL 111111111111110111111111111000000 32 字母o没出现!!! + +####(5): + + //std::string str; + TinySTL::string str; + ProfilerInstance::start(); + int i = 0; + for (; i != 1000000; ++i){ + str.push_back('x'); + } + ProfilerInstance::finish(); + ProfilerInstance::dumpDuringTime(); + +######i = 1000000 -> (TinySTL::string:7ms \\ std::string:37ms) +######i = 10000000 -> (TinySTL::string:39ms \\ std::string:229ms) +######i = 100000000 -> (TinySTL::string:484ms \\ std::string:1965ms)