[Boost-bugs] [Boost C++ Libraries] #7082: Add support for benchmarking

Subject: [Boost-bugs] [Boost C++ Libraries] #7082: Add support for benchmarking
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-05 05:32:07


#7082: Add support for benchmarking
--------------------------------------+-------------------------------------
 Reporter: marco.craveiro@… | Owner: rogeeff
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.51.0 | Severity: Not Applicable
 Keywords: test benchmarking |
--------------------------------------+-------------------------------------
 One useful thing with boost test would be to run the tests in a
 "benchmarking mode". The general idea is to be able to run many iterations
 of all tests to get an idea of their performance. I believe the following
 changes would be sufficient:

 - BOOST_AUTO_TEST_CASE could have an additional optional parameter:
 number_of_iterations. This is set by the user manually. For example:
 BOOST_AUTO_TEST_CASE(my_test_case, 10000). If not passed in, it would
 default to 1.
 - A new command line parameter would trigger benchmarking: say
 --benchmarking. When passed in, all tests would run number_of_ iterations
 times.
 - the elapsed time for a test would then be the accumulated time taken by
 all iterations

 This would be great for nightlies.

 This issue was discussed a bit on the mailing-list on this thread:

 http://lists.boost.org/boost-users/2011/01/65790.php

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7082>
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:50:10 UTC