26#include <boost/format.hpp>
90 void makeTest(
const size_t number,
const size_t repeat,
ChronoEntity& chrono ) {
91 std::random_device rd;
92 std::mt19937
g( rd() );
95 typedef std::vector<TYPE*> Vct;
96 Vct vct = Vct( number, (TYPE*)0 );
99 for (
size_t irep = 0; irep < repeat; ++irep ) {
105 for (
size_t i = 0; i < number; ++i ) { vct[i] =
new TYPE(); }
112 std::shuffle( vct.begin(), vct.end(), g );
119 for (
size_t i = 0; i < number; ++i ) {
delete vct[i]; }
130 const size_t number = 10000;
131 const size_t repeate = 4000;
140 makeTest<Test>( number, repeate, test );
141 std::cout << test << std::endl;
151 makeTest<Test>( number, repeate, test );
152 std::cout << test << std::endl;
162 makeTest<Test>( number, repeate, test );
163 std::cout << test << std::endl;
173 makeTest<Test>( number, repeate, test );
174 std::cout << test << std::endl;
184 makeTest<Test>( number, repeate, test );
185 std::cout << test << std::endl;
std::ostream & operator<<(std::ostream &s, AlgsExecutionStates::State x)
Streaming of State values.
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local...
std::string outputSystemTime() const
print the chrono ;
IChronoSvc::ChronoStatus start()
start the current chrono
IChronoSvc::ChronoStatus stop()
stop the chrono
std::string outputElapsedTime() const
print the chrono ;
std::string outputUserTime() const
print the chrono ;
Simple class, equipped with "Allocator", to be compared with class MyClass1.
Trivial "almost empty" class.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.