bench_set_sg.cpp 985 B

12345678910111213141516171819202122232425262728
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2013-2013. Distributed under the Boost
  4. // Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/container for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #include "boost/container/set.hpp"
  11. #include "bench_set.hpp"
  12. int main()
  13. {
  14. using namespace boost::container;
  15. fill_range_ints();
  16. fill_range_strings();
  17. //set(RB) vs set(SG)
  18. launch_tests< set<int, std::less<int>, std::allocator<int>, tree_assoc_options< tree_type<scapegoat_tree> >::type >, set<int> >
  19. ("set<int>(SG)", "set<int>(RB)");
  20. launch_tests< set<string, std::less<string>, std::allocator<string>, tree_assoc_options< tree_type<scapegoat_tree> >::type >, set<string> >
  21. ("set<string>(SG)", "set<string>(RB)");
  22. return 0;
  23. }