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