[CMake] Use ctest for automatic performance measurement

Alexander Neundorf a.neundorf-work at gmx.net
Tue Sep 14 15:47:20 EDT 2010


On Tuesday 14 September 2010, Stefan Dänzer wrote:
> Hi all,
>
> I was wondering if one could use cmake/ctest for automatic performance
> measurement of applications.
>
> I would want to use ctest to automatically measure the performance of
> a whole system and the individual components of a system.
>
> Take for instance an image processing application consisting of
> several implemented image processing methods. If one would for
> instance want to automatically register two medical images the would
> be a whole toolchain behind the actual registration task:
> Preprocessing, metric, interpolator, transform, optimizer.
>
> The performance metrics of the individual components and the complete
> system in this case might be:
>
> 1. Runtime
> 2. Accuracy by means of defining a distance metric and measuring to a
> ground truth
>
> This way one would be able to tune a single algorithm in the toolchain
> and see how it affects the performance of the whole system.
>
> Has anyone done this with Cmake/CTest?
>
> Regards,
>
> Stefan

You need to get tags <DartMeasurement> into the stdout of your tests, then 
these values will be displayed by cdash:
<DartMeasurement name="LoadingTime" type="numeric/double"> 
1.234</DartMeasurement>

Alex


More information about the CMake mailing list