Result from running time experiment
Objects of the
TimeResult class hold information describing the result
from running a time experiment on a test suite using the
matlab.perftest.TimeExperiment class. Objects contain information about the
time measurements and the corresponding functional test results.
The test results are available as a table.
The MATLAB® testing framework creates an instance of the
class when you run a time experiment.
Name — Name of the test suite element that corresponds to the time results
Name of the test suite element that corresponds to the time results, returned as a character vector.
Valid — Indicator if measurement is valid
logical 0 or 1
Indicator if the measurement is valid, returned as
logical 0 or 1. A measurement is valid
logical 1) if it is collected from a passing test.
Otherwise it is invalid (
Samples — Information about sample measurements
Information about sample measurements, returned as a table with the following information.
|Name||Name of the test suite element. If a measurement label is
|MeasuredValue||Value of the measurement. Experiments can give this
column a more specific name, such as
|Timestamp||Time when measurement is collected.|
|Host||Machine name where measurement is collected.|
|Platform||Platform architecture on which measurement is collected.|
|Version||MATLAB Version used in test.|
|RunIdentifier||Unique identifier of measurement run.|
TestActivity — Information about all test activity
Information about all test activity, including the warm-up measurements,
returned as a table. This table is useful when you want all the data, such
as during debugging or when performing a more involved data analysis. The
TestActivity table contains these columns in
addition to the columns described for
|Passed||Logical value indicating if the test passed|
|Failed||Logical value indicating if the test failed|
|Incomplete||Logical value indicating if test run is incomplete|
|Objective||Categorical value indicating the type of measurement:
|Use the |
Version HistoryIntroduced in R2019a
R2019b: Visually compare two
matlab.perftest.TimeResult class has a new method
comparisonPlot that lets you visually compare the time
measurement results of two equal-sized sets of performance tests.