mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
Merge branch 'bugfix/event_perf_test_psram' into 'master'
esp_event: lower test performance threshold for PSRAM config Closes #34 See merge request idf/esp-idf!3603
This commit is contained in:
@@ -780,8 +780,12 @@ static void performance_test(bool dedicated_task)
|
||||
// Enabling profiling will slow down event dispatch, so the set threshold
|
||||
// is not valid when it is enabled.
|
||||
#else
|
||||
#ifndef CONFIG_SPIRAM_SUPPORT
|
||||
TEST_PERFORMANCE_GREATER_THAN(EVENT_DISPATCH, "%d", average);
|
||||
#endif
|
||||
#else
|
||||
TEST_PERFORMANCE_GREATER_THAN(EVENT_DISPATCH_PSRAM, "%d", average);
|
||||
#endif // CONFIG_SPIRAM_SUPPORT
|
||||
#endif // CONFIG_EVENT_LOOP_PROFILING
|
||||
|
||||
if (!dedicated_task) {
|
||||
((esp_event_loop_instance_t*) loop)->task = mtask;
|
||||
@@ -1074,4 +1078,4 @@ TEST_CASE("can dump event loop profile", "[event]")
|
||||
|
||||
TEST_TEARDOWN();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -28,4 +28,5 @@
|
||||
#define IDF_PERFORMANCE_MIN_UDP_RX_THROUGHPUT 80
|
||||
#define IDF_PERFORMANCE_MIN_UDP_TX_THROUGHPUT 50
|
||||
// events dispatched per second by event loop library
|
||||
#define IDF_PERFORMANCE_MIN_EVENT_DISPATCH 25000
|
||||
#define IDF_PERFORMANCE_MIN_EVENT_DISPATCH 25000
|
||||
#define IDF_PERFORMANCE_MIN_EVENT_DISPATCH_PSRAM 21000
|
||||
|
Reference in New Issue
Block a user