From 32a8b893d88f2a0b58388034c74430519aa09308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Wed, 24 Sep 2014 19:08:22 +0800 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 8d4094f..52c125a 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,18 @@ TinySTL ######i = 100000 -> (TinySTL::vector:18ms \\ std::vector:29ms) ######i = 1000000 -> (TinySTL::vector:181ms \\ std::vector:232ms) ######i = 10000000 -> (TinySTL::vector:2372ms \\ std::vector:1972ms) + TinySTL::circular_buffer cb(10000, 0); + //boost::circular_buffer cb(10000, 0); + ProfilerInstance::start(); + for (int i = 0; i != 10000000; ++i){ + cb.push_back(i); + } + ProfilerInstance::finish(); + ProfilerInstance::dumpDuringTime(); + +######i = 10000000 -> (TinySTL::circular_buffer:75ms \\ boost::circular_buffer:22ms) +######i = 100000000 -> (TinySTL::circular_buffer:604ms \\ boost::circular_buffer:252ms) +######i = 1000000000 -> (TinySTL::circular_buffer:5936ms \\ boost::circular_buffer:2241ms)