#### [[返回文档目录]](../index.html) [[查看原始页]](../content/%E5%AF%B9%E6%A0%91%E8%8E%93%E6%B4%BE%20Raspberry%20Pi%20%E8%BF%9B%E8%A1%8C%E8%B6%85%E9%A2%91%E6%B5%8B%E8%AF%95%20-%20%E5%BC%80%E6%BA%90%E4%B8%AD%E5%9B%BD%20OSChina.NET.html)
# 对树莓派 Raspberry Pi 进行超频测试 - 开源中国 OSChina.NET
## 对树莓派进行超频?
Raspberry Pi 非常惊人,而且售价只有 35 美金。我一直摆弄了几周。最近 Raspberry Pi 开发组提供了一份 [树莓派超频指南](http://www.raspberrypi.org/archives/2008) ([中文](http://www.oschina.net/translate/how-to-overclock-raspberry-pi)),可以将树莓派的 CPU 频率从 700兆超频到 1G,而且他们保证超频对设备并无损害!
我的问题是 **超频对性能影响有多大?** 因此我决定对此进行测试,我使用了 [nbench Linux](http://www.tux.org/~mayer/linux/bmark.html) 工具来对我的树莓派 CPU 进行基准测试,通过 theraspi-config 命令行工具来更改 CPU 的频率,然后对每个不同的频率进行单独测试。
## 测试结果
下表中显示了在不同的频率下的 “integer index” 和 “floating-point index” 计算结果,数字越高表示性能越好。
| CPU (MHz) |
Integer index |
Floating-point index |
| 700 |
10.752 |
3.474 |
| 800 |
13.024 |
4.244 |
| 900 |
14.475 |
4.653 |
| 950 |
14.575 |
4.501 |
| 1000 |
16.237 |
5.475 |
上表中数据显示,从700兆超频到1G,性能提升明显。
### 性能提升的百分比
| CPU (MHz) |
Int improvement (%) |
FP improvement (%) |
| 700 |
100 |
100 |
| 800 |
121 |
122 |
| 900 |
135 |
134 |
| 950 |
136 |
130 |
| 1000 |
151 |
158 |
### Performance improvements over previous speed
| CPU (MHz) |
Int improvement (%) |
FP improvement (%) |
| 700 |
100 |
100 |
| 800 |
121 |
122 |
| 900 |
111 |
110 |
| 950 |
101 |
97 |
| 1000 |
111 |
122 |
### 每一美元的性能价值 :)
下表中显示超频后的性价比体现
| CPU (MHz) |
Cost per Int ($) |
Cost per FP ($) |
| 700 |
3.26 |
10.07 |
| 800 |
2.69 |
8.25 |
| 900 |
2.42 |
7.52 |
| 950 |
2.40 |
7.78 |
| 1000 |
2.16 |
6.39 |
## 结论
上述的测试可以得出如下几点结论:
首先,我的测试结果跟官方的结果很接近。
其次,树莓派在超频模式下性能表现优异,从 700兆到1G,整数处理性能提升 151%,浮点数性能提升 158%。
第三,如果你不想冒险,可以把频率设定在 900 或者 950 兆,这样会更保险些。
## 测试注意事项
为了运行这个测试,我禁用了 wpa\_supplicantandtransmission-daemon ,这对 nbench 测试可能会有 3.4% 的影响。
via [chimerasaurus](http://www.chimerasaurus.com/2013/01/raspberry-pi-overclocking-benchmarks/)