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

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

文章詳情介紹:

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

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

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

測(cè)試對(duì)象

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

測(cè)試結(jié)果

表1 測(cè)試結(jié)果

TF卡

寫(xiě)

閃迪C10 128GB

15.9MB/s

55.4MB/s

閃迪C4 16GB

2.2 MB/s

17.0MB/s

愛(ài)國(guó)者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

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

測(cè)試原理

dd命令

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

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

測(cè)試指令如下:

寫(xiě)速度測(cè)試:dd if=/dev/zero of=$mount_point/largefile bs=16k count=16384 oflag=direct

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

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

dd的相關(guān)解釋

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

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

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

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

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

測(cè)試過(guò)程硬件準(zhǔn)備

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

測(cè)試準(zhǔn)備

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

表2 TF卡

測(cè)試環(huán)境讀寫(xiě)測(cè)試

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

閃迪C10 128GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 0 minutes 33 seconds.)

測(cè)試完成!

閃迪C4 16GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 2 minutes 23 seconds.)

測(cè)試完成!

愛(ài)國(guó)者U3 32GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 5 minutes 2 seconds.)

測(cè)試完成!

金士頓C10 32GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 0 minutes 28 seconds.)

測(cè)試完成!

金士頓C4 32GB

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 1 minutes 35 seconds.)

測(cè)試完成!

??低旵10 16GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 1 minutes 35 seconds.)

測(cè)試完成!

金士頓C10 64GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 2 minutes 51 seconds.)

測(cè)試完成!

金士頓C4 8GB

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

16384+0 records in

16384+0 records out

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

清除緩存...

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

16384+0 records in

16384+0 records out

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

測(cè)試時(shí)長(zhǎng): (0 hours 5 minutes 58 seconds.)

測(cè)試完成!