Many things, including a log timing report in the test
Timing report: I (52322) LOG_TEST: === WRITE TIMING REPORT === I (52322) LOG_TEST: Iterations: 200 I (52322) LOG_TEST: Payload size: 39 bytes I (52322) LOG_TEST: Min: 49960 us I (52332) LOG_TEST: Max: 54476 us I (52332) LOG_TEST: Avg: 50005 us I (52342) LOG_TEST: Sector crossings: 2 (max 49983 us) I (52342) LOG_TEST: WDT margin: 4.9s (WDT=5s, worst=54476us) I (52352) LOG_TEST: =========================== so a write takes up to 54ms - not negligible!
This commit is contained in:
@@ -40,6 +40,9 @@ bool test_log_full_partition(void);
|
||||
bool test_log_read_after_write(void);
|
||||
bool test_log_multiple_types(void);
|
||||
|
||||
// Write timing benchmark (not a pass/fail test — prints min/max/avg report)
|
||||
void test_log_write_timing(void);
|
||||
|
||||
// Helper functions for testing
|
||||
void print_test_results(test_result_t* results, int num_tests);
|
||||
int count_passed_tests(test_result_t* results, int num_tests);
|
||||
|
||||
Reference in New Issue
Block a user