diff --git a/components/esp_event/test/test_event.c b/components/esp_event/test/test_event.c index afad5b1ea8..b69476ba0b 100644 --- a/components/esp_event/test/test_event.c +++ b/components/esp_event/test/test_event.c @@ -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 \ No newline at end of file +#endif diff --git a/components/idf_test/include/idf_performance.h b/components/idf_test/include/idf_performance.h index 8ba1be753e..322d405fc4 100644 --- a/components/idf_test/include/idf_performance.h +++ b/components/idf_test/include/idf_performance.h @@ -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 \ No newline at end of file +#define IDF_PERFORMANCE_MIN_EVENT_DISPATCH 25000 +#define IDF_PERFORMANCE_MIN_EVENT_DISPATCH_PSRAM 21000