C++ benchmark – std::vector VS std::list
December 5, 2012 Marc Gregoire General
Here is an interesting article that compares the performance of std::vector with the performance of std::list in various use case scenarios (using a C++11 compiler).
It’s an interesting read. Some people will not expect the results. I’m not going to spoil the conclusion, just a quick look at the graphs in the article should tell you everything.
The conclusion of the article also contains the following excellent recommendation:
If you have the time, in practice, the best way to decide is always to benchmark both versions, or even to try other data structures.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
-
Recent Posts
Community Sponsor
Blogroll
Tags
@becppug Barco BeCpp UG benchmark Beta C++ C++11 C++14 C++17 C++20 C++ AMP Challenge Clang Community Day Coroutines CppDepend Dekimo hackathon HTML iso Iterators JavaScript JSON Lambdas LLVM Logo Materialise Meeting C++ Metro modern c++ move semantics pictures Ranges TechDays TechNet VC++2013 Visual C++ 11 Visual C++ 2012 Visual C++ 2013 Visual C++ 2019 Visual Studio 11 Visual Studio 2012 Visual Studio 2013 Windows 8 WinRTArchives
- October 2024
- August 2024
- April 2024
- March 2024
- November 2023
- September 2023
- May 2023
- March 2023
- January 2023
- December 2022
- July 2022
- June 2022
- July 2021
- May 2021
- April 2020
- March 2020
- February 2020
- December 2019
- October 2019
- September 2019
- July 2019
- June 2019
- May 2019
- February 2019
- December 2018
- October 2018
- September 2018
- July 2018
- June 2018
- March 2018
- January 2018
- December 2017
- November 2017
- April 2017
- February 2017
- December 2016
- November 2016
- October 2016
- July 2016
- May 2016
- March 2016
- December 2015
- October 2015
- June 2015
- May 2015
- January 2015
- December 2014
- May 2014
- March 2014
- February 2014
- November 2013
- October 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
Meta
Leave a Reply
You must be logged in to post a comment.