From d28c99d36ce99549042b5977d3dfc7987947165e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 1 Nov 2018 11:01:35 +0800 Subject: [PATCH] esp_event: lower test performance threshold for PSRAM config --- components/esp_event/test/test_event.c | 8 ++++++-- components/idf_test/include/idf_performance.h | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/esp_event/test/test_event.c b/components/esp_event/test/test_event.c index afad5b1ea..b69476ba0 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 8ba1be753..322d405fc 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