mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 17:08:49 +00:00
test: Tweaks to reduce variation in CI unit tests
spi test: Prime the flash cache before each test to minimise flash cache misses. VFS performance test: Increase the number of runs to minimise influence of an isolated bad run.
This commit is contained in:
committed by
Angus Gratton
parent
c8d3c6a494
commit
87077a5478
@@ -1311,6 +1311,7 @@ TEST_CASE("spi_speed","[spi]")
|
||||
//record flight time by isr, with DMA
|
||||
t_flight_num = 0;
|
||||
for (int i = 0; i < TEST_TIMES; i++) {
|
||||
spi_device_transmit(spi, &trans); // prime the flash cache
|
||||
RECORD_TIME_START();
|
||||
spi_device_transmit(spi, &trans);
|
||||
RECORD_TIME_END(&t_flight);
|
||||
|
||||
Reference in New Issue
Block a user