Re: [Boost-bugs] [Boost C++ Libraries] #1560: Performance testing with boost::test

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1560: Performance testing with boost::test
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-01-23 07:06:58


#1560: Performance testing with boost::test
----------------------------------------------+-----------------------------
  Reporter: John Pavel <jrp_at_[hidden]> | Owner: rogeeff
      Type: Feature Requests | Status: reopened
 Milestone: To Be Determined | Component: test
   Version: Boost Development Trunk | Severity: Optimization
Resolution: | Keywords:
----------------------------------------------+-----------------------------
Comment (by rogeeff):

 What you are looking for is not a timed test case, but specialized
 performance tester.

 something like

 template<Profiler, Func>
 Profiler::interval_type
 time_invocation( Func f );

 additional parameters may include:
 unsigned num_times_to_repeat
 Profiler::interval_type total_test_time
 unsigned num_of attempts_to_ignore;
 double bottom_percent_to_ignore;
 double top_percent_to_ignore;
 unsigned minimal_number_of_attempts;

 I would use named parameters interface to specify these.

 To accomodatelast need I would use something like:

 template<Profiler, Func, ParamIter, ExpectedComplexityFunc>
 Profiler::interval_type
 test_complexity( Func f, ParamIter first_param, ParamIter last_parm,
 ExpectedComplexityFunc ec );

 this should test that performance numbers match predicate when collected
 over set of parameters

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1560#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC