I've been studying about writing time in flash memory of ESP8266, and I found this strange results:
When I write 1KB of data 100 times in the same file, I got 93 writing time equal to 3ms and 7 writing time equal to something greater than 100ms. Could anyone explain to me why this happens?
That's the code I write for this test:
for(i = 0; i < 100; i++) {
file = SPIFFS.open("text", "w");
initial_time = millis();
file.write(buff, len);
file.close();
final_time = millis();
Serial.println(final_time - initial_time);
}
Thank you!