Run this example: ...\hardware\teensy\avr\libraries\SdFat\examples\b ench\bench.ino
You can adjust buffer size.
Just now on 'used' cardwith data 512B Read and write as fast as 4KB and 16KB ... YMMV
See:
Code:
...
// Set PRE_ALLOCATE true to pre-allocate file clusters.
const bool PRE_ALLOCATE = true;
// Set SKIP_FIRST_LATENCY true if the first read/write to the SD can
// be avoid by writing a file header or reading the first record.
const bool SKIP_FIRST_LATENCY = true;
// Size of read/write.
const size_t BUF_SIZE = 512;
...
Results at 512B:
Code:
Use a freshly formatted SD for best performance.
Type any character to start
FreeStack: 449160
Type is exFAT
Card size: 128.18 GB (GB = 1E9 bytes)
Manufacturer ID: 0X1B
OEM ID: SM
Product: GD2S5
Version: 3.0
Serial number: 0XD1679B33
Manufacturing date: 8/2015
FILE_SIZE_MB = 5
BUF_SIZE = 512 bytes
Starting write test, please wait.
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
16833.94,55066,22,29
14244.10,53565,22,34
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
22725.82,843,22,22
22829.59,23,22,22