# include <cppad/utility/speed_test.hpp>
SpeedTest(Test, first, inc, last)
SpeedTestfunction executes a speed test for various sized problems and reports the results on standard output; i.e.
std::cout. The size of each test problem is included in its report (unless
firstis equal to
SpeedTestautomatically determines how many times to repeat the section of the test that we wish to time.
SpeedTestfunction. This file is included by
cppad/cppad.hppbut it can also be included separately with out the rest of the
Testis a function with the syntax
name = Test(size, repeat)
It specifies the size for this test.
It specifies the number of times to repeat the test.
The results for this test are reported on
nameas an identifier for the test. It is assumed that, for the duration of this call to
Testwill always return the same value for
nameis the empty string, no test name is reported by
It specifies the size of the first test problem reported by this call to
It specifies the size of the last test problem reported by this call to
It specifies the increment between problem sizes; i.e., all values of
sizein calls to
Testare given by
size = first + j * inc
jis a positive integer. The increment can be positive or negative but it cannot be zero. The values
incmust satisfy the relation @[@ inc * ( last - first ) \geq 0 @]@
std::coutis defined as the value of
repeatdivided by the corresponding elapsed execution time in seconds. The elapsed execution time is measured by the difference in
in the context of the standard(double) clock() / (double) CLOCKS_PER_SEC