You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> cd host/tests
> make ../../libraries/LittleFS/examples/SpeedTest/SpeedTest
> ./bin/SpeedTest/SpeedTest
SPIFFS: 1048576 bytes
SPIFFS: loading 1048576 bytes from './bin/SpeedTest/SpeedTest-spiffs1024KB'
LittleFS: 1048576 bytes
LittleFS: loading 1048576 bytes from './bin/SpeedTest/SpeedTest-littlefs1024KB'
Beginning test
Creating 512KB file, may take a while...
==> Time to write 512KB in 256b chunks = 2 milliseconds
==> Created file size = 524288
Reading 512KB file sequentially in 256b chunks
==> Time to read 512KB sequentially in 256b chunks = 1 milliseconds = 524288000 bytes/s
Reading 512KB file MISALIGNED in flash and RAM sequentially in 256b chunks
fish: './bin/SpeedTest/SpeedTest' terminated by signal SIGFPE (Floating point exception)
stop - start can be 0
Program received signal SIGFPE, Arithmetic exception.
0x000055555555917c in DoTest (fs=0x5555555874f0 <LittleFS>) at ./../../libraries/LittleFS/examples/SpeedTest//SpeedTest.ino:75
75 Serial.printf("==> Time to read %dKB sequentially MISALIGNED in flash and RAM in 256b chunks = %ld milliseconds = %ld bytes/s\n", TESTSIZEKB, stop - start, TESTSIZEKB * 1024 / (stop - start) * 1000);
While I see your point, I'm not sure it's worth the code to patch an onboard flash speed test to run on the host which is using DRAM and can end up with div-by-0 error errors. This example in particular was meant to compare on-device speeds of LittleFS, SDFS, and SPIFFS, and running on the host is not really useful IMHO.
Wow, I guess we are getting faster CI systems all the time! Thanks, GitHub!
The test is used for valgrind checking of the File operations, not actual functional correctness, so on second thought it should be kept and fixed. Let me throw in a PR...
Running 40b26b7
stop - start
can be 0There are more offending lines though
Arduino/libraries/LittleFS/examples/SpeedTest/SpeedTest.ino
Line 62 in 40b26b7
Arduino/libraries/LittleFS/examples/SpeedTest/SpeedTest.ino
Line 75 in 40b26b7
Arduino/libraries/LittleFS/examples/SpeedTest/SpeedTest.ino
Line 95 in 40b26b7
Arduino/libraries/LittleFS/examples/SpeedTest/SpeedTest.ino
Line 106 in 40b26b7
Arduino/libraries/LittleFS/examples/SpeedTest/SpeedTest.ino
Line 117 in 40b26b7
I suppose there should be a helper function for example(s) or the tests specifically that handles time tracing instead of manual approach like this
The text was updated successfully, but these errors were encountered: