elliotwutingfeng/cpubenchmarknet
GitHub: elliotwutingfeng/cpubenchmarknet
该库为 Go 开发者提供了一种便捷的程序化方式,用于获取 PassMark 的 CPU 基准测试数据集。
Stars: 3 | Forks: 1
# 非官方 cpubenchmark.net 数据集工具
[](https://pkg.go.dev/github.com/elliotwutingfeng/cpubenchmarknet)
[](https://coveralls.io/github/elliotwutingfeng/cpubenchmarknet?branch=main)
[](LICENSE)
一个用于下载由 [PassMark Software](https://passmark.com) 提供的 [CPU Mega List](https://cpubenchmark.net/CPU_mega_page.html) 数据集的非官方库。
发现任何 Bug?[在此报告](https://github.com/elliotwutingfeng/cpubenchmarknet/issues)。
**免责声明:** _本项目未受到 PassMark Software 的赞助、认可或其他任何形式的附属关系。_
## 环境要求
- Go 1.26
## 基础示例
以下代码片段会将数据集作为 JSON 字符串下载并打印到 stdout。
```
package main
import (
"fmt"
"github.com/elliotwutingfeng/cpubenchmarknet"
)
func main() {
CPUMegaList, err := cpubenchmarknet.GetCPUMegaList()
if err == nil {
fmt.Println(CPUMegaList) // JSON string
} else {
fmt.Println(err)
}
}
```
## 参考
- [PassMark Software 使用条款](https://passmark.com/legal/disclaimer.php)
标签:CPU基准测试, EVTX分析, Go, Homebrew安装, PassMark, Ruby工具, 开源库, 搜索引擎爬虫, 数据获取, 日志审计