|
Boost Users : |
Subject: Re: [Boost-users] [boost.test] benchmarking support
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-02-01 17:05:51
Gennadiy Rozental wrote:
> Marco Craveiro <marco.craveiro <at> gmail.com> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net