{"id":446,"date":"2012-12-05T08:58:04","date_gmt":"2012-12-05T07:58:04","guid":{"rendered":"http:\/\/becpp.org\/blog\/?p=446"},"modified":"2012-12-05T08:58:04","modified_gmt":"2012-12-05T07:58:04","slug":"c-benchmark-stdvector-vs-stdlist","status":"publish","type":"post","link":"https:\/\/becpp.org\/blog\/2012\/12\/05\/c-benchmark-stdvector-vs-stdlist\/","title":{"rendered":"C++ benchmark \u2013 std::vector VS std::list"},"content":{"rendered":"<p>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).<br \/>\nIt&#8217;s an interesting read. Some people will not expect the results. I&#8217;m not going to spoil the conclusion, just a quick look at the graphs in the article should tell you everything.<br \/>\nThe conclusion of the article also contains the following excellent recommendation:<\/p>\n<blockquote><p>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.<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.baptiste-wicht.com\/2012\/11\/cpp-benchmark-vector-vs-list\/\" target=\"_blank\">Read the article here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s an interesting read. Some people will not expect the results. I&#8217;m not going to spoil the conclusion, just a quick look at the graphs in the article should tell [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[3],"tags":[44,20,43,42],"class_list":["post-446","post","type-post","status-publish","format-standard","hentry","category-general","tag-benchmark","tag-c","tag-list","tag-vector"],"_links":{"self":[{"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/posts\/446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/comments?post=446"}],"version-history":[{"count":7,"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":453,"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/posts\/446\/revisions\/453"}],"wp:attachment":[{"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/media?parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/categories?post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/becpp.org\/blog\/wp-json\/wp\/v2\/tags?post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}