Raspberry Pi 树莓派性能测试

Raspberry Pi 树莓派性能测试

目录:

CPU
Linpack基准测试
源码
编译/运行
结果
Whetstone/Dhrystone综合基准测试
源码
编译/运行
结果
OpenSSL安全协议测试
源码
编译/运行
结果
GPU
ioquake3(雷神之锤3修改版)
源码
编译/运行
结果
IO
USB总线
SD卡
NIC(网卡)
编译/运行
结果
路由
方法
结果
电源

CPU Linpack基准测试

已经完成对Arm的linpack基准测试, 选用gcc带-O3 (优化等级3)编译代码[1]. 用200大小的数组运行.

包括软件浮点

源码

[2]

编译/运行 cc -O3 -o linpack linpack.c -lm linpack.c: In function ‘main’: linpack.c:69: warning: return type of ‘main’ is not ‘int’ ./linpack Enter array size (q to quit) [200]: 200 结果

Crippled

Memory required: 315K. LINPACK benchmark, Double precision. Machine precision: 15 digits. Array size 200 X 200. Average rolled and unrolled performance: Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS 2 0.53 92.45% 1.89% 5.66% 5493.333 4 1.07 92.52% 2.80% 4.67% 5385.621 8 2.12 92.45% 2.36% 5.19% 5466.003 16 4.24 92.45% 2.83% 4.72% 5438.944 32 8.49 92.11% 2.71% 5.18% 5459.213 64 16.98 92.05% 2.89% 5.06% 5452.440

硬件浮点 (-mfloat-abi=softfp)

Memory required: 315K. LINPACK benchmark, Double precision. Machine precision: 15 digits. Array size 200 X 200. Average rolled and unrolled performance: Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS 8 0.51 90.20% 3.92% 5.88% 22888.889 16 1.02 89.22% 4.90% 5.88% 22888.889 32 2.05 90.24% 3.41% 6.34% 22888.889 64 4.08 91.42% 2.94% 5.64% 22829.437 128 8.16 91.54% 2.94% 5.51% 22799.827 256 16.31 91.35% 2.76% 5.89% 22903.800

Raspbian下的全硬件浮点 (-mfloat-abi=hard -mfpu=vfp), 频率arm_freq=700

Memory required: 315K. LINPACK benchmark, Double precision. Machine precision: 15 digits. Array size 200 X 200. Average rolled and unrolled performance: Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS 16 0.58 89.66% 3.45% 6.90% 40691.358 32 1.17 87.18% 4.27% 8.55% 41071.651 64 2.32 88.36% 3.02% 8.62% 41459.119 128 4.67 88.22% 3.43% 8.35% 41071.651 256 9.33 88.85% 3.32% 7.82% 40880.620 512 18.63 89.00% 2.95% 8.05% 41047.675

Raspbian下的全硬件浮点 (-mfloat-abi=hard -mfpu=vfp), 频率arm_freq=1000 core_freq=500

Memory required: 315K. LINPACK benchmark, Double precision. Machine precision: 15 digits. Array size 200 X 200. Average rolled and unrolled performance: Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS 32 0.79 89.87% 0.00% 10.13% 61896.714 64 1.58 89.24% 1.27% 9.49% 61463.869 128 3.16 90.19% 1.90% 7.91% 60407.789 256 6.32 88.13% 3.80% 8.07% 60511.761 512 12.65 87.83% 3.56% 8.62% 60825.836

Gentoo下的全硬件浮点, 带编译器优化(gcc-4.6.3 -Ofast -fno-fast-math), 默认时序

Memory required: 315K. LINPACK benchmark, Double precision. Machine precision: 15 digits. Array size 200 X 200. Average rolled and unrolled performance: Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS ---------------------------------------------------- 16 0.56 89.29% 1.79% 8.93% 43084.967 32 1.13 91.15% 4.42% 4.42% 40691.358 64 2.25 89.78% 3.56% 6.67% 41853.968 128 4.51 87.80% 4.21% 7.98% 42358.233 256 9.01 88.68% 3.88% 7.44% 42155.076 512 18.01 89.23% 2.78% 8.00% 42434.923 Whetstone/Dhrystone综合基准测试

用gcc带参数-float-abi=softfp -O3编译全部代码

源码

测试代码在.

备用地址

编译/运行 ? 结果

Dhrystone

Microseconds for one run through Dhrystone: 1.2 Dhrystones per Second: 809061.5

Whetstone Crippled

Loops: 1000, Iterations: 10, Duration: 24 sec. C Converted Double Precision Whetstones: 41.7 MIPS

'gcc -mfpu -float-abi=softfp'重新编译Whetstone, 结果更好:

Loops: 1000, Iterations: 100, Duration: 106 sec. C Converted Double Precision Whetstones: 94.3 MIPS

上面的测试没有带-mfpu=vfp编译, 所以大部分运算时间都花费在SQRT方法上. 用了vfp后提升很大:

Loops: 1000, Iterations: 100, Duration: 15 sec. C Converted Double Precision Whetstones: 666.7 MIPS OpenSSL安全协议测试 源码

[3]

编译/运行 openssl version; openssl speed; 结果

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/19582.html