Page 1 of 1

SPIFFS vs FATFS write speed

Posted: Thu Jul 12, 2018 8:37 am
by davdav
Hi everybody,

I need to write a lot (around 1000) of small files (100 bytes each). I'm currently using FATfs components and wear-leaveling.
It takes a long time to write them (more than 10minutes).

I wonder if SPIFFS could be more quick respect to FATFS or is there a low level method to write in flash directly but we the possibility to use a filesystem to open and read the files after the transfer has been completed.

Is it possible or is there any documentation/examples to check?

Thanks

Re: SPIFFS vs FATFS write speed

Posted: Mon Mar 11, 2019 10:00 am
by jerome
Hi
I'm wondering if you found an answer to this ?
I've the same question :-)
Thanks
Jerome

Re: SPIFFS vs FATFS write speed

Posted: Mon Apr 01, 2019 4:52 pm
by phatpaul
I've found in my experience FatFs (plus wearleveling) to be faster than SPIFFS.

But I really wan't to try LittleFS.

Here's an interesting benchmark.
https://github.com/RIOT-OS/RIOT/pull/8316
Opening/writing 4000B/closing a file is about 8 times faster with littlefs than with spiffs
Opening/reading 4000B/closing a file is about 5 times faster with littlefs than with spiffs
Formatting is about 500 times faster with littlefs than with spiffs
Mounting is about 60 times faster with littlefs than with spiffs