TestSpeed
Unit test for confirming that one function is faster than another.
Back to Simple Unit Testing Toolbox Documentation.
Contents
Constructor
unit_test = TestSpeed(f_fast,f_slow,args,name) unit_test = TestSpeed(f_fast,f_slow,{},name)
Variable | Description | Format |
f_fast | function handle for faster function | 1×1 function_handle |
f_slow | function handle for slower function | 1×1 function_handle |
args | input arguments to functions (if the functions have no input arguments, then input args as {}) | cell array |
name | test name | char array |
NOTE: f_fast and f_slow must have the same input/output behavior.
Superclass
- TestSpeed is a subclass of the UnitTest class (i.e. UnitTest is the superclass of TestSpeed). See the UnitTest class's documentation for documentation of methods that the TestSpeed class also possesses.