Files
bb/README.md
2025-05-29 15:13:19 +08:00

30 lines
657 B
Markdown

buildbot-benchmark.bash
=======================
AOSC构建机器标准性能测试套件。本基准测试通过使用Ninja构建LLVM核心运行时来评估相对性能。
使用方法
-----
执行以下命令运行测试:
```
bash -c "$(curl -fsSL https://git.whlug.cn/xunmi/bb/raw/buildbot-benchmark.bash)"
```
`time`命令输出中提取"Real"实际耗时:
```
real 7m30.250s 7023.34%
user 484m4.777s
sys 42m40.285s
```
将时间转换为秒数(向上取整):
```
echo $((7*60 + 31))s
```
请将测试结果填写至[构建机器](https://wiki.aosc.io/developer/infrastructure/buildbots/)页面的"性能"一栏。