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)