FreeEMS Issues - Firmware
View Issue Details
0000750FirmwareTestingpublic2012-10-24 15:562012-10-24 15:57
Fred 
Fred 
normalfeatureN/A
assignedopen 
0.2.0-SNAPSHOT 
Future 
New Feature
low
0000750: Create new unit test call that executes N iterations of the given test with the same data set
See title. Packet format should be something like {ID, count, data}

Which will run the data through the <ID> function <count> times and not care about the results, but rather measure the time using all of the clock variables so as to measure slow and fast things equally.

STOP ISRs
copy clock struct and/or timer count
START ISRs

execute loop of <count> function calls to <ID>

STOP ISRs
copy clock struct and/or timer count again
START ISRs

Exit, returning timings.
No tags attached.

Notes
(0002364)
Fred   
2012-10-24 15:57   
Each of these should occupy the same page as the code under test so as to remove page change overheads from the timings; that can be measured separately.