Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.test] benchmarking support
From: Marco Craveiro (marco.craveiro_at_[hidden])
Date: 2011-01-28 02:21:46


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.

many thanks

marco

-- 
Constraint has encouraged not only economy, but also a certain elegance
of design. -- Dennis Ritchie



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