Package: matlab.perftest
Interface for measuring execution time of code under test
The matlab.perftest.TimeExperiment
class is the
principal interface for measuring the execution time of code under
test. The performance testing framework runs a test suite and returns
a matlab.unittest.measurement.MeasurementResult
object
for each element of the suite. For each test suite element, the testing
framework collects multiple measurements and reports them in the corresponding MeasurementResult
.
Instantiate a TimeExperiment
object using one
of its static methods.
limitingSamplingError | Construct time experiment for specified margin of error and confidence level |
run | Run time experiment on test suite |
withFixedSampleSize | Construct time experiment with fixed number of measurements |
Handle. To learn how handle classes affect copy operations, see Copying Objects.
matlab.perftest.FixedTimeExperiment
| matlab.perftest.FrequentistTimeExperiment
| matlab.unittest.measurement.MeasurementResult
| matlab.unittest.TestRunner