Gennadiy Rozental wrote:
Marco Craveiro
writes: On Wed, 2011-01-26 at 14:30 -0800, Robert Ramey wrote:
hmmm - you can look at libs/serialization/test/performance to see how I've addressed the problem.
thanks Robert, this looks like what i need. however, wouldn't it be easier to benchmark if one could do it directly from boost.test?
- BOOST_AUTO_TEST_CASE(test_name, 10000 /*repetitions*/) - pass in a parameter in the command line to activate benchmarking, e.g. --benchmark. this results in running the test "repetitions" times; if not passed, runs only once - the timing is already done by boost.test so no changes there.
do ppl think this is an acceptable approach? i'll raise a feature request if that's the case.
Hmmm - you've already said you need this, so your commited to doing the work anyway. Why not just do the work and submit it as a suggested patch/enhancement to the test system via the TRACK system. Robert Ramey