Boost logo

Boost :

Subject: Re: [boost] [build] Performance tests
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-11-22 03:18:23


vicente.botet wrote:

>
> ----- Original Message -----
> From: "Vladimir Prus" <vladimir_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Wednesday, November 04, 2009 4:55 PM
> Subject: Re: [boost] [build] Performance tests
>
>
>>
>> vicente.botet wrote:
>>
>>> Hi,
>>>
>>> I would like to execute some performance test with Boost.Build. Is there a way to force the
>>> execution of the tests without building the executables?
>>
>> You should be able to do this:
>>
>> exe hello : hello.cpp ;
>> run-output hello.output : hello ;
>> time hello.time : hello.output ;
>>
>> The first metatarget just builds exe, as usual. The second runs the executable
>> (capturing the output). The third records the time spend to run the executed.
>>
>> You might need to 'import testing ; ' on top.
>>
>>> Are there some examples of performance tests for some Boost libraries?
>>
>> I am not aware of such.
>>
>> Hope this helps,
>
> Thanks ofor the hint. I didn't know run-output and time. Are these commands documented?

Unfortunately not.

> This allows me to get the time but in order to get again the time I need to force to build all
> with -a. I would like to build all the executables targets, and then be able to run performance
> tests several times.
>
> BTW, I need to pass some args when running the program. I do this now as
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk