# 实用工具

## 使用工具推荐

[How to Run Industry-Standard Benchmarks on the Cyclone V SoC and Arria V SoC FPGAs](https://rocketboards.org/foswiki/pub/Documentation/LinuxBenchmarking/How_to_Run_CV_SoC_benchmarks_051316.pdf) 提供了工业标准性能测试工具的编译安装，可以作为参考：

* 处理器核心性能压测

| Benchmark工具 | 说明           | 可以用于检测的硬件                                |
| ----------- | ------------ | ---------------------------------------- |
| CoreMark    | 处理器核心，缓存内存读写 | CPU Pipeline, L1缓存                       |
| Dhrystone   | 整数和分支操作      | CPU Pipeline, 整数逻辑计算单元（Integer ALU），L1缓存 |
| Whetstone   | 浮点数操作        | CPU Pipeline, ENON/浮点计算单元（FPU），L1缓存      |

* 内存密集测试

| Benchmark工具 | 说明            |
| ----------- | ------------- |
| STREAM      | 大量的顺序数据流的内存读写 |
| LMBench     | 随机内存读写        |

使用不同的工具链可能会得到不同的benchmark测试结果，并且测试工具受到编译参数的影响，例如编译优化界别，单核或多核，是否使用neon，以及是否使用浮点计算硬件等。

## 压测工具

我现在非常厌倦需要花费大量时间来寻找商用软件，所以首选采用开源软件来完成一切工作。在开源压测工具K6的网站上有一篇对比当前流行的压测软件的文章 [Open source load testing tool review 2020](https://k6.io/blog/comparing-best-open-source-load-testing-tools)介绍对比了很多开源压测工具(业务压测)，其中比较优秀的：

* [k6](https://k6.io/) 使用Go语言编写，支持js的定制
* [locust](https://locust.io/) 使用Python语言编写，支持python定制

我觉得两者都是值得深入学习的开源软件


---

# 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.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.
