淘寶tf卡選擇(tf卡腳位定義)

本篇文章給大家談?wù)則f卡選擇,以及tf卡腳位定義的知識點(diǎn),希望對各位有所幫助,不要忘了收藏本站喔。

文章詳情介紹:

超詳細(xì)!萬象奧科親測8款不同品牌TF卡性能測試

TF卡作為一種微型存儲卡,可以在手機(jī)、平板、相機(jī)等設(shè)備中存儲數(shù)據(jù)。不同的TF卡有不同的容量和速度,可以滿足不同的需求。而對于開發(fā)板來說,TF卡的讀寫速度也直接影響了傳輸數(shù)據(jù)的快慢。如果TF卡的讀寫速度過慢,可能會導(dǎo)致數(shù)據(jù)丟失,系統(tǒng)崩潰,文件損壞等問題。因此,選擇一款高品質(zhì)、高規(guī)格、高兼容性的TF卡是很必要的。

那如何測試TF卡在開發(fā)板上的讀寫速度呢?本文將使用萬象奧科HD-G2UL-EVM評估板測試不同TF卡在該開發(fā)板下的讀寫性能表現(xiàn)。

測試對象

HD-G2UL-EVM評估板是一款基于RZ/G2UL微處理器的工業(yè)級核心板,配備Cortex?-A55 (1 GHz) CPU、16位DDR3L/DDR4、雙路USB2.0、支持256GB擴(kuò)展TF卡槽等豐富的接口和多種視頻接口,適用于工業(yè)現(xiàn)場和嵌入式設(shè)備。

測試結(jié)果

表1 測試結(jié)果

TF卡

閃迪C10 128GB

15.9MB/s

55.4MB/s

閃迪C4 16GB

2.2 MB/s

17.0MB/s

愛國者U3 32GB

1.0 MB/s

8.9 MB/s

金士頓C10 32GB

16.6MB/s

58.2MB/s

金士頓C4 32GB

3.5 MB/s

17.6MB/s

??低旵10 16GB

3.8MB/s

18.4MB/s

金士頓C10 64GB

2.0 MB/s

9.5 MB/s

金士頓C4 8GB

807 kB/s

14.6MB/s

一般來說,寫入速度和讀取速度越高,TF卡的性能越好,但價格可能越高,從表1中可以看出,閃迪C10 128GB TF卡具有最高的寫入速度和讀取速度,不考慮預(yù)算的話它是最佳選擇。如果不需要容量大的,金士頓C10 32GB TF卡也是一個不錯的選擇。?

測試原理

dd命令

Linux dd 命令用于讀取、轉(zhuǎn)換并輸出數(shù)據(jù)。

dd 可從標(biāo)準(zhǔn)輸入或文件中讀取數(shù)據(jù),根據(jù)指定的格式來轉(zhuǎn)換數(shù)據(jù),再輸出到文件、設(shè)備或標(biāo)準(zhǔn)輸出。

測試指令如下:

寫速度測試:dd if=/dev/zero of=$mount_point/largefile bs=16k count=16384 oflag=direct

清除頁面緩存:sync && echo 3 > /proc/sys/vm/drop_caches

讀速度測試:dd if=$mount_point/largefile of=/dev/null bs=16k count=16384

dd的相關(guān)解釋

if 代表輸入文件。如果不指定 if,默認(rèn)就會從 stdin 中讀取輸入。

of 代表輸出文件。如果不指定 of,默認(rèn)就會將 stdout 作為默認(rèn)輸出。

bs 代表字節(jié)為單位的塊大小。

count 代表被復(fù)制的塊數(shù)。

/dev/zero 是一個字符設(shè)備,會不斷返回 0 值字節(jié)(\0)。

測試過程硬件準(zhǔn)備

HD-G2UL-EVM評估板(512MB+8GB)、網(wǎng)線、Type-c數(shù)據(jù)線、5V電源適配器、電腦主機(jī)。

測試準(zhǔn)備

準(zhǔn)備5種以上不同規(guī)格品牌TF卡選取測試,如表2所示。

表2 TF卡

測試環(huán)境讀寫測試

以讀寫FAT32文件系統(tǒng)為例,寫讀大小為256MB的文件。

閃迪C10 128GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 16.8738 s, 15.9 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 4.84136 s, 55.4 MB/s

測試時長: (0 hours 0 minutes 33 seconds.)

測試完成!

閃迪C4 16GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 120.232 s, 2.2 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 15.7637 s, 17.0 MB/s

測試時長: (0 hours 2 minutes 23 seconds.)

測試完成!

愛國者U3 32GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 259.502 s, 1.0 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 30.0122 s, 8.9 MB/s

測試時長: (0 hours 5 minutes 2 seconds.)

測試完成!

金士頓C10 32GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 16.1571 s, 16.6 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 4.61386 s, 58.2 MB/s

測試時長: (0 hours 0 minutes 28 seconds.)

測試完成!

金士頓C4 32GB

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 76.8466 s, 3.5 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256MB大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 12.5822 s, 17.6 MB/s

測試時長: (0 hours 1 minutes 35 seconds.)

測試完成!

??低旵10 16GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 71.558 s, 3.8 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 14.6249 s, 18.4 MB/s

測試時長: (0 hours 1 minutes 35 seconds.)

測試完成!

金士頓C10 64GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 131.653 s, 2.0 MB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 28.3016 s, 9.5 MB/s

測試時長: (0 hours 2 minutes 51 seconds.)

測試完成!

金士頓C4 8GB

進(jìn)行寫性能測試...預(yù)計(jì)寫入256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 332.638 s, 807 kB/s

清除緩存...

進(jìn)行讀性能測試...預(yù)計(jì)讀256M大小的largefile文件

16384+0 records in

16384+0 records out

268435456 bytes (268 MB) copied, 18.3718 s, 14.6 MB/s

測試時長: (0 hours 5 minutes 58 seconds.)

測試完成!