平台: STM32ZET6(主频72M)+SDIO
设备驱动测试:
finsh>>device_test(“sd0”)
block device!
device info:
sector size : 512 byte
sector count : 7744512
block size : 512 byte
device I/O R/W test pass!
device I/O speed test.
RT_TICK_PER_SECOND:100
read 200 sector from 10483 to 10494,930909 byte/s
write 200 sector from 10495 to 10522,379259 byte/s
单线程单文件读写测试:
finsh>>writespeed(“/speed.dat”,819200,512)
File write speed: 370678 byte/s
finsh>>writespeed(“/speed.dat”,819200,512)
finsh>>readspeed(“/speed.dat”,512)
File read speed: 920449 byte/s
finsh>>readspeed(“/speed.dat”,512)
finsh>>writespeed(“/speed.dat”,8192000,512)
File write speed: 334777 byte/s
finsh>>writespeed(“/speed.dat”,8192000,512)
finsh>>readspeed(“/speed.dat”,512)
File read speed: 931968 byte/s
finsh>>readspeed(“/speed.dat”,512)
File read speed: 934093 byte/s
多线程文件同时读写(文件读出后还做了校验,所以实际速度应该大于计算值)
(两个线程优先级相同,时间片相等,但每个线程操作的文件大小不同):
thread fsrw2 round 1 rd:112640byte/s,wr:174757byte/s
thread fsrw1 round 1 rd: 92219byte/s,wr:98461byte/s
thread fsrw2 round 2 rd:148270byte/s,wr:136778byte/s
thread fsrw2 round 3 rd:186721byte/s,wr:121293byte/s
thread fsrw1 round 2 rd:108720byte/s,wr:100734byte/s
thread fsrw2 round 4 rd:102040byte/s,wr:139751byte/s
thread fsrw1 round 3 rd: 91254byte/s,wr: 80133byte/s
thread fsrw2 round 5 rd:195652byte/s,wr:124481byte/s
thread fsrw2 round 6 rd:199115byte/s,wr:126760byte/s
thread fsrw1 round 4 rd:119254byte/s,wr:114285byte/s
thread fsrw2 round 7 rd:108303byte/s,wr:140625byte/s
thread fsrw1 round 5 rd: 86408byte/s,wr: 81149byte/s