# SPEC CPU测试CPU性能

## SPEC 2006介绍

SPEC CPU 2006 benchmark是SPEC新一代的行业标准化的CPU测试基准套件。重点测试系统的处理器，内存子系统和编译器。这个基准测试套件包括的SPECint基准和SPECfp基准。 其中SPECint2006基准包含12个不同的基准测试和SPECfp2006年基准包含19个不同的基准测试。SPEC设计了这个套件提供了一个比较标准的计算密集型，高性能的跨硬件的CPU测试工具。在SPEC CPU 2006基准有几种不同的方法来衡量计算机性能。 一种方式是测量计算机完成单一任务的速度; 另一种方式吞吐量，容量或速率的测量。

> 当前spec cpu 2006可以免费获得，最新版本spec cpu 2017需要购买。

## 工具获取

[SPEC CPU® 2006](https://www.spec.org/cpu2006/) 下载不太容易找到，如果从第三方下载，请注意到官方网站做md5校验： [SPEC Software MD5 Checksums](https://www.spec.org/md5sums.html)

## 工具安装

* 标准安装

```
$mount -t iso9660 -o ro,exec /dev/cdrom /mnt
$cd /mnt
$./install.sh
```

* 可以指定安装目录如：

```
$./install.sh -d  /home/cpu2006
```

## 测试

## 参考

* [Spec2006使用说明](http://www.vimlinux.com/lipeng/2014/10/10/linux/)
* [SPEC benchmark 测试程序使用教程](https://blog.csdn.net/timesir/article/details/78157791)
* [Installing SPEC CPU2006 Under Unix, Linux, and Mac OS X](https://www.spec.org/cpu2006/Docs/install-guide-unix.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/performance/utilities/spec_cpu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
