Merge branch 'bugfix/performance_tests_psram' into 'master'
tests: Increase performance thresholds when running with PSRAM See merge request idf/esp-idf!2414
This commit is contained in:
commit
d84add4513
2 changed files with 8 additions and 0 deletions
|
@ -16,7 +16,10 @@
|
||||||
#define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1000
|
#define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1000
|
||||||
#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 30
|
#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 30
|
||||||
#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA 27
|
#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA 27
|
||||||
|
/* Due to code size & linker layout differences interacting with cache, VFS
|
||||||
|
microbenchmark currently runs slower with PSRAM enabled. */
|
||||||
#define IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME 20000
|
#define IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME 20000
|
||||||
|
#define IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME_PSRAM 40000
|
||||||
// throughput performance by iperf
|
// throughput performance by iperf
|
||||||
#define IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT 50
|
#define IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT 50
|
||||||
#define IDF_PERFORMANCE_MIN_TCP_TX_THROUGHPUT 40
|
#define IDF_PERFORMANCE_MIN_TCP_TX_THROUGHPUT 40
|
||||||
|
|
|
@ -257,5 +257,10 @@ TEST_CASE("Open & write & close through VFS passes performance test", "[vfs]")
|
||||||
const int64_t time_diff_us = esp_timer_get_time() - begin;
|
const int64_t time_diff_us = esp_timer_get_time() - begin;
|
||||||
const int ns_per_iter = (int) (time_diff_us * 1000 / iter_count);
|
const int ns_per_iter = (int) (time_diff_us * 1000 / iter_count);
|
||||||
TEST_ESP_OK( esp_vfs_unregister(VFS_PREF1) );
|
TEST_ESP_OK( esp_vfs_unregister(VFS_PREF1) );
|
||||||
|
#ifdef CONFIG_SPIRAM_SUPPORT
|
||||||
|
TEST_PERFORMANCE_LESS_THAN(VFS_OPEN_WRITE_CLOSE_TIME_PSRAM, "%dns", ns_per_iter);
|
||||||
|
#else
|
||||||
TEST_PERFORMANCE_LESS_THAN(VFS_OPEN_WRITE_CLOSE_TIME, "%dns", ns_per_iter);
|
TEST_PERFORMANCE_LESS_THAN(VFS_OPEN_WRITE_CLOSE_TIME, "%dns", ns_per_iter);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue