qinyunti 发表于 2022-10-6 14:24

【创龙科技全志A40i开发板】性能综合测试

<h1><b>前言</b></h1>

<p >之前进行了开发环境等的体验,现在对各方面的性能进行一个定性体验。</p>

<h1 ><b>跑分</b></h1>

<p >打开WSL终端</p>

<p >下载代码</p>

<p >git clone <a href="https://github.com/eembc/coremark.git"><u>https://github.com/eembc/coremark.git</u></a></p>

<p >cd coremark/</p>

<p >&nbsp;</p>

<p >vi simple/core_portme.h</p>

<p >修改</p>

<p >#define COMPILER_FLAGS \</p>

<p >&nbsp;&nbsp;&nbsp;&nbsp;FLAGS_STR /* &quot;Please put compiler flags here (e.g. -o3)&quot; */</p>

<p >#endif</p>

<p >为</p>

<p >#define COMPILER_FLAGS \</p>

<p >&nbsp;&nbsp;&nbsp;&nbsp;&quot;-O3&quot; /* &quot;Please put compiler flags here (e.g. -o3)&quot; */</p>

<p >#endif</p>

<p >如果-O0编译则改为&rdquo;-O0&rdquo;</p>

<p >typedef ee_u32 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ee_ptr_int;</p>

<p >改为</p>

<p >typedef unsigned long &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ee_ptr_int;</p>

<p >&nbsp;</p>

<p >编译</p>

<p >export PATH=$PATH:~/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin</p>

<p >arm-linux-gnueabihf-gcc&nbsp;-o coremarko0&nbsp;core_list_join.c core_main.c core_matrix.c core_state.c core_util.c simple/core_portme.c -DPERFORMANCE_RUN=1 -DITERATIONS=100000 -Isimple -I. -O0</p>

<p >arm-linux-gnueabihf-gcc&nbsp;-o coremarko3&nbsp;core_list_join.c core_main.c core_matrix.c core_state.c core_util.c simple/core_portme.c -DPERFORMANCE_RUN=1 -DITERATIONS=100000 -Isimple -I. -O3</p>

<p >导入到windows下</p>

<p >cp coremarko0 coremarko3 /mnt/d</p>

<p >&nbsp;</p>

<p >然后通过串口rz导入到开发板</p>

<p >添加可执行权限</p>

<p >chmod +x coremarko0 coremarko3</p>

<p >&nbsp;</p>

<p >运行</p>

<p >./coremarko0</p>

<p >./coremarko3</p>

<p >&nbsp;</p>

<p >结果如下,可以看到优化不同差距较大</p>

<div class="parsedown-markdown">
<p>root@T3/A40i-Tronlong:~# ./coremarko0</p>

<p >&nbsp;</p>

<p >2K performance run parameters for coremark.</p>

<p >CoreMark Size &nbsp;&nbsp;&nbsp;: 666</p>

<p >Total ticks &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 146952831</p>

<p >Total time (secs): 146.952831</p>

<p >Iterations/Sec &nbsp;&nbsp;: 680.490463</p>

<p >Iterations &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 100000</p>

<p >Compiler version : GCC9.4.0</p>

<p >Compiler flags &nbsp;&nbsp;: -O0</p>

<p >Memory location &nbsp;: STACK</p>

<p >seedcrc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0xe9f5</p>

<p >crclist &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0xe714</p>

<p >crcmatrix &nbsp;&nbsp;&nbsp;&nbsp;: 0x1fd7</p>

<p >crcstate &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0x8e3a</p>

<p >crcfinal &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0xd340</p>

<p >Correct operation validated. See README.md for run and reporting rules.</p>

<p >CoreMark 1.0 : 680.490463 / GCC9.4.0 -O0 / STACK</p>

<p >&nbsp;</p>

<p >root@T3/A40i-Tronlong:~# ./coremarko3</p>

<p >2K performance run parameters for coremark.</p>

<p >CoreMark Size &nbsp;&nbsp;&nbsp;: 666</p>

<p >Total ticks &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 29362505</p>

<p >Total time (secs): 29.362505</p>

<p >Iterations/Sec &nbsp;&nbsp;: 3405.703975</p>

<p >Iterations &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 100000</p>

<p >Compiler version : GCC9.4.0</p>

<p >Compiler flags &nbsp;&nbsp;: -O0</p>

<p >Memory location &nbsp;: STACK</p>

<p >seedcrc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0xe9f5</p>

<p >crclist &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0xe714</p>

<p >crcmatrix &nbsp;&nbsp;&nbsp;&nbsp;: 0x1fd7</p>

<p >crcstate &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0x8e3a</p>

<p >crcfinal &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0xd340</p>

<p >Correct operation validated. See README.md for run and reporting rules.</p>

<p >CoreMark 1.0 : 3405.703975 / GCC9.4.0 -O0 / STACK</p>
</div>

<p >&nbsp;</p>

<p >&nbsp;</p>

<p >从https://www.eembc.org/coremark/scores.php</p>

<p >搜索Cortex-A7可以对比同型号CPU的得分。</p>

<p >Cortex - A7&nbsp;1.2GHz</p>

<p >&nbsp;</p>

<h1 ><b>RAM性能测试</b></h1>

<p >WSL中</p>

<p >下载代码</p>

<p >git clone https://github.com/qinyunti/STREAM.git</p>

<p >cd STREAM/</p>

<p >&nbsp;</p>

<p >编译</p>

<p >export PATH=$PATH:~/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin</p>

<p >arm-linux-gnueabihf-gcc -O3 -DSTREAM_ARRAY_SIZE=5000000 stream.c -o stream.5M</p>

<p >&nbsp;</p>

<p >导出到windows下</p>

<p >cp stream.5M /mnt/d</p>

<p >&nbsp;</p>

<p >然后通过串口rz导入到开发板</p>

<p >添加可执行权限</p>

<p >chmod +x stream.5M</p>

<p >&nbsp;</p>

<p >运行</p>

<p >./stream.5M</p>

<p >结果如下</p>

<div class="parsedown-markdown">
<p>root@T3/A40i-Tronlong:~# ./stream.5M</p>

<p >-------------------------------------------------------------</p>

<p >STREAM version $Revision: 5.10 $</p>

<p >-------------------------------------------------------------</p>

<p >This system uses 8 bytes per array element.</p>

<p >-------------------------------------------------------------</p>

<p >Array size = 5000000 (elements), Offset = 0 (elements)</p>

<p >Memory per array = 38.1 MiB (= 0.0 GiB).</p>

<p >Total memory required = 114.4 MiB (= 0.1 GiB).</p>

<p >Each kernel will be executed 10 times.</p>

<p >&nbsp;The *best* time for each kernel (excluding the first iteration)</p>

<p >&nbsp;will be used to compute the reported bandwidth.</p>

<p >-------------------------------------------------------------</p>

<p >Your clock granularity/precision appears to be 1 microseconds.</p>

<p >Each test below will take on the order of 52219 microseconds.</p>

<p >&nbsp;&nbsp;&nbsp;(= 52219 clock ticks)</p>

<p >Increase the size of the arrays if this shows that</p>

<p >you are not getting at least 20 clock ticks per test.</p>

<p >-------------------------------------------------------------</p>

<p >WARNING -- The above is only a rough guideline.</p>

<p >For best results, please be sure you know the</p>

<p >precision of your system timer.</p>

<p >-------------------------------------------------------------</p>

<p >Function &nbsp;&nbsp;&nbsp;Best Rate MB/s &nbsp;Avg time &nbsp;&nbsp;&nbsp;&nbsp;Min time &nbsp;&nbsp;&nbsp;&nbsp;Max time</p>

<p >Copy: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;972.1 &nbsp;&nbsp;&nbsp;&nbsp;0.083436 &nbsp;&nbsp;&nbsp;&nbsp;0.082297 &nbsp;&nbsp;&nbsp;&nbsp;0.084256</p>

<p >Scale: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;868.5 &nbsp;&nbsp;&nbsp;&nbsp;0.092398 &nbsp;&nbsp;&nbsp;&nbsp;0.092110 &nbsp;&nbsp;&nbsp;&nbsp;0.092609</p>

<p >Add: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;829.7 &nbsp;&nbsp;&nbsp;&nbsp;0.144716 &nbsp;&nbsp;&nbsp;&nbsp;0.144639 &nbsp;&nbsp;&nbsp;&nbsp;0.144788</p>

<p >Triad: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;683.4 &nbsp;&nbsp;&nbsp;&nbsp;0.175755 &nbsp;&nbsp;&nbsp;&nbsp;0.175587 &nbsp;&nbsp;&nbsp;&nbsp;0.175917</p>

<p >-------------------------------------------------------------</p>

<p >Solution Validates: avg error less than 1.000000e-13 on all three arrays</p>
</div>

<p >&nbsp;</p>

<p >&nbsp;</p>

<p >参考https://www.cs.virginia.edu/stream/ref.html</p>

<p >&nbsp;</p>

<h1 ><b>RAM压力测试</b></h1>

<p >参考 <a href="https://pyropus.ca./software/memtester/"><u>https://pyropus.ca./software/memtester/</u></a></p>

<p >WSL中</p>

<p >下载代码</p>

<p >wget https://pyropus.ca./software/memtester/old-versions/memtester-4.5.1.tar.gz</p>

<p >tar -xvf memtester-4.5.1.tar.gz</p>

<p >cd memtester-4.5.1/</p>

<p >&nbsp;</p>

<p >编译</p>

<p >export PATH=$PATH:~/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin</p>

<p >arm-linux-gnueabihf-gcc -O3 memtester.c tests.c -o memtester</p>

<p >&nbsp;</p>

<p >导出到WINDOWS下,下载到开发板</p>

<p >cp memtester /mnt/d</p>

<p >&nbsp;</p>

<p >chmod +x memtester</p>

<p >&nbsp;</p>

<p >运行</p>

<p >./memtester</p>

<p >运行结果如下,默认一直测试下去,可以最后指定测试次数</p>

<p >比如</p>

<p >./memtester&nbsp;128M 1</p>

<p >128M表示测试RAM大小</p>

<p >1表示测试一次</p>

<p >另外也可以-p直接指定物理地址,适合在板子开发阶段裸机代码直接指定物理地址测试。</p>

<div class="parsedown-markdown">
<p>root@T3/A40i-Tronlong:~# ./memtester 128M 1</p>

<p >memtester version 4.5.1 (32-bit)</p>

<p >Copyright (C) 2001-2020 Charles Cazabon.</p>

<p >Licensed under the GNU General Public License version 2 (only).</p>

<p >&nbsp;</p>

<p >pagesize is 4096</p>

<p >pagesizemask is 0xfffff000</p>

<p >want 128MB (134217728 bytes)</p>

<p >got &nbsp;128MB (134217728 bytes), trying mlock ...locked.</p>

<p >Loop 1/1:</p>

<p >&nbsp;&nbsp;Stuck Address &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Random Value &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Compare XOR &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Compare SUB &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Compare MUL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Compare DIV &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Compare OR &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Compare AND &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok</p>

<p >&nbsp;&nbsp;Sequential Increment: ok</p>

<p >&nbsp;&nbsp;Solid Bits &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Block Sequential &nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Checkerboard &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Bit Spread &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Bit Flip &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Walking Ones &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;&nbsp;Walking Zeroes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ok &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>

<p >&nbsp;</p>

<p >Done.</p>
</div>

<p >&nbsp;</p>

<p >&nbsp;</p>

<h1 ><b>EMMC性能测试</b></h1>

<p >&nbsp;</p>

<p >dmesg | grep mmc</p>

<p >&nbsp;</p>

<p >4GEMMC</p>

<p >&nbsp;</p>

<p >[ &nbsp;&nbsp;&nbsp;4.008550] mmc0: new HS200 MMC card at address 0001</p>

<p >[ &nbsp;&nbsp;&nbsp;4.009409] mmcblk0: mmc0:0001 S04111 3.56 GiB</p>

<p >&nbsp;</p>

<p >和16G的SD卡</p>

<p >[ &nbsp;&nbsp;&nbsp;8.202017] mmc1: new high speed SDHC card at address aaaa</p>

<p >[ &nbsp;&nbsp;&nbsp;8.208872] mmcblk1: mmc1:aaaa SL16G 14.8 GiB</p>

<p >&nbsp;</p>

<p >EMMC速度为HS200</p>

<table style="border-collapse:collapse; border:none;Times New Roman&quot;">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:1px solid #dddddd; border-right:1px solid #dddddd; border-left:1px solid #dddddd" valign="center">Speed Mode
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:1px solid #dddddd; border-right:1px solid #dddddd; border-left:none" valign="center">clock (MHz)
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:1px solid #dddddd" valign="center">Default Speed
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:none" valign="center">26
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:1px solid #dddddd" valign="center">Hight Speed SDR
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:none" valign="center">52
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:1px solid #dddddd" valign="center">Hight Speed DDR
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:none" valign="center">52
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:1px solid #dddddd" valign="center">HS200
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:none" valign="center">200
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:1px solid #dddddd" valign="center">HS400
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #dddddd; background-color:#ffffff; border-top:none; border-right:1px solid #dddddd; border-left:none" valign="center">200
                        <p>&nbsp;</p>
                        </td>
                </tr>
        </tbody>
</table>

<p >df查看,使用/目录进行读写测试</p>

<div class="parsedown-markdown">
<p>root@T3/A40i-Tronlong:~# df</p>

<p >Filesystem &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1K-blocks &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used Available Use% Mounted on</p>

<p >/dev/root &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2029971 &nbsp;&nbsp;&nbsp;514680 &nbsp;&nbsp;1406338 &nbsp;27% /</p>

<p >devtmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;107996 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 &nbsp;&nbsp;&nbsp;107996 &nbsp;&nbsp;0% /dev</p>

<p >tmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;124604 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 &nbsp;&nbsp;&nbsp;124604 &nbsp;&nbsp;0% /dev/shm</p>

<p >tmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;124604 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8 &nbsp;&nbsp;&nbsp;124596 &nbsp;&nbsp;0% /tmp</p>

<p >tmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;124604 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12 &nbsp;&nbsp;&nbsp;124592 &nbsp;&nbsp;0% /run</p>

<p >cgroup &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;124604 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 &nbsp;&nbsp;&nbsp;124604 &nbsp;&nbsp;0% /sys/fs/cgroup</p>

<p >root@T3/A40i-Tronlong:~#</p>
</div>

<p >&nbsp;</p>

<p >&nbsp;</p>

<p >不插入SD卡 /挂载在emmc</p>

<p >&nbsp;</p>

<table style="border-collapse:collapse; border:none;Times New Roman&quot;">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:1px solid #000000" valign="top">
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="top">bs/count &nbsp;1GB
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="top">指令
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="top">结果
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td rowspan="3" style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="top">读
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">16k/65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">time dd if=test.bin&nbsp;of=/dev/null bs=16k count=65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">98.5MB/S
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">4k/262144
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;</td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">1k/1048576
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td rowspan="3" style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="top">写
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">16k/65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">time dd if=/dev/zero of=/test.bin bs=16k count=65536&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">27.24MB/S
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">4k/262144
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">1k/1048576
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;</td>
                </tr>
        </tbody>
</table>

<div class="parsedown-markdown">
<p>root@T3/A40i-Tronlong:/# time dd if=/dev/zero of=/test.bin bs=16k count=65536</p>

<p >65536+0 records in</p>

<p >65536+0 records out</p>

<p >&nbsp;</p>

<p >real &nbsp;&nbsp;&nbsp;0m37.581s</p>

<p >user &nbsp;&nbsp;&nbsp;0m0.080s</p>

<p >sys &nbsp;&nbsp;&nbsp;&nbsp;0m15.230s</p>

<p >root@T3/A40i-Tronlong:/# time dd if=test.bin of=/dev/null bs=16k count=65536</p>

<p >65536+0 records in</p>

<p >65536+0 records out</p>

<p >&nbsp;</p>

<p >real &nbsp;&nbsp;&nbsp;0m10.386s</p>

<p >user &nbsp;&nbsp;&nbsp;0m0.070s</p>

<p >sys &nbsp;&nbsp;&nbsp;&nbsp;0m4.040s</p>

<p >root@T3/A40i-Tronlong:/#</p>
</div>

<p >&nbsp;</p>

<p >&nbsp;</p>

<p >以上仅作参考,实际欸有考虑缓存的影响。</p>

<p >&nbsp;</p>

<h1 ><b>SD卡性能测试</b></h1>

<p >插入SD卡后重启,自动挂在到/root到SD卡</p>

<table style="border-collapse:collapse; border:none;Times New Roman&quot;">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:1px solid #000000" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="top">bs/count &nbsp;1GB
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="top">指令
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="top">结果
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td rowspan="3" style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="top">读
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">16k/65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">time dd if=/root/test.bin&nbsp;of=/dev/null bs=16k count=65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">21.25MB/S
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">4k/262144
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">1k/1048576
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td rowspan="3" style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="top">写
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">16k/65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">time dd if=/dev/zero of=/root/test.bin bs=16k count=65536
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">11MB/S
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">4k/262144
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">1k/1048576
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; background-color:#ffffff; border-top:none; border-right:1px solid #000000; border-left:none" valign="top">&nbsp;
                        <p>&nbsp;</p>
                        </td>
                </tr>
        </tbody>
</table>

<div class="parsedown-markdown">
<p>root@T3/A40i-Tronlong:~# time dd if=/dev/zero of=/root/test.bin bs=16k count=65536</p>

<p >65536+0 records in</p>

<p >65536+0 records out</p>

<p >real &nbsp;&nbsp;&nbsp;1m32.412s</p>

<p >user &nbsp;&nbsp;&nbsp;0m0.330s</p>

<p >sys &nbsp;&nbsp;&nbsp;&nbsp;0m17.700s</p>

<p >root@T3/A40i-Tronlong:~# time dd if=/root/test.bin of=/dev/null bs=16k count=65536</p>

<p >65536+0 records in</p>

<p >65536+0 records out</p>

<p >real &nbsp;&nbsp;&nbsp;0m48.177s</p>

<p >user &nbsp;&nbsp;&nbsp;0m0.100s</p>

<p >sys &nbsp;&nbsp;&nbsp;&nbsp;0m4.350s</p>
</div>

<p >&nbsp;</p>

<p >速度和SD卡本身有关,也没有考虑缓存,所以结果仅作参考。</p>

<h1 ><b>总结</b></h1>

<p >以上综合对性能进行了测试,感觉性能还是非常不错的,各测试结果仅作参考,因为环境等因素不一样测得结果也会不一样,包括存储的测试方法也不是很科学,比如没有考虑缓存等。上述测试只是一个定性的性能体验,板子的性能是一个综合的体验,需要是面对真是的应用场景才有意义,并且针对场景优化也很重要。</p>

<p >&nbsp;</p>

<p >&nbsp;</p>

lugl4313820 发表于 2022-10-6 17:08

<p>板子的性能是一个综合的体验,需要是面对真是的应用场景才有意义,并且针对场景优化也很重要。</p>

<p>利害了!</p>
页: [1]
查看完整版本: 【创龙科技全志A40i开发板】性能综合测试