////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2007-2026. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/container for documentation. // ////////////////////////////////////////////////////////////////////////////// // // Compares boost::container::vector against std::vector. // ////////////////////////////////////////////////////////////////////////////// #ifndef LONG_BENCH //#define LONG_BENCH #endif #include #include //std::allocator #include #include "bench_vector_common.hpp" template void run_containers(runner& r) { //First registered container is the baseline (denominator). r.template add< std::vector > >("std::vector"); r.template add< bc::vector > >("vector(1.6x)"); typedef typename bc::vector_options < bc::growth_factor >::type growth_100_t; r.template add< bc::vector, growth_100_t> >("vector(2x)"); } int main() { test_vectors(); test_vectors(); return 0; }