Merge branch 'bugfix/performance_tests' into 'master'

test: Tweaks to reduce variation in CI unit tests

See merge request idf/esp-idf!2529
This commit is contained in:
Ivan Grokhotkov 2018-06-11 23:20:45 +08:00
commit 3e64318364
2 changed files with 2 additions and 1 deletions

View file

@ -1311,6 +1311,7 @@ TEST_CASE("spi_speed","[spi]")
//record flight time by isr, with DMA //record flight time by isr, with DMA
t_flight_num = 0; t_flight_num = 0;
for (int i = 0; i < TEST_TIMES; i++) { for (int i = 0; i < TEST_TIMES; i++) {
spi_device_transmit(spi, &trans); // prime the flash cache
RECORD_TIME_START(); RECORD_TIME_START();
spi_device_transmit(spi, &trans); spi_device_transmit(spi, &trans);
RECORD_TIME_END(&t_flight); RECORD_TIME_END(&t_flight);

View file

@ -243,7 +243,7 @@ TEST_CASE("Open & write & close through VFS passes performance test", "[vfs]")
TEST_ESP_OK( esp_vfs_register(VFS_PREF1, &desc, NULL) ); TEST_ESP_OK( esp_vfs_register(VFS_PREF1, &desc, NULL) );
const int64_t begin = esp_timer_get_time(); const int64_t begin = esp_timer_get_time();
const int iter_count = 1000; const int iter_count = 5000;
for (int i = 0; i < iter_count; ++i) { for (int i = 0; i < iter_count; ++i) {
const int fd = open(VFS_PREF1 FILE1, 0, 0); const int fd = open(VFS_PREF1 FILE1, 0, 0);