COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
utest-component-benchmark.cpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for cf3::Component"
9 
10 #include <boost/test/unit_test.hpp>
11 
12 #include "common/Log.hpp"
13 #include "common/Component.hpp"
14 #include "common/Group.hpp"
15 
18 
19 using namespace cf3;
20 
22 {
23 };
24 
26 
27 BOOST_FIXTURE_TEST_SUITE( ComponentBenchSuite, ComponentBenchFixture )
28 
29 
31 BOOST_AUTO_TEST_CASE( constructor )
32 {
33  for(Uint i = 0; i != 10000; ++i)
34  common::allocate_component<common::Group>("test");
35 }
36 
38 
39 BOOST_AUTO_TEST_SUITE_END()
40 
41 
BOOST_AUTO_TEST_CASE(constructor)
Any test using this fixture (or a derivative) will be timed.
Any test using this fixture (or a derivative) will be profiled.
Holds the Component class, as well as the ComponentIterator class plus some functions related to comp...
Top-level namespace for coolfluid.
Definition: Action.cpp:18
unsigned int Uint
typedef for unsigned int
Definition: CF.hpp:90
Send comments to:
COOLFluiD Web Admin