如何运行性能测试
在本地运行性能测试的主要方式是运行其主机端入口点。这些入口点在 src/tests/end_to_end/perf/ 中定义。这些是 Fuchsia Infra build 用于收集性能结果并上传到 Chromeperf 中的内容。运行其中一个入口点涉及以下内容:
使用 terminal
产品,以匹配在 CI 和 CQ 中的 Fuchsia 基础架构上测试的内容。例如:
fx set terminal.x64-reduced-perf-variation --with //bundles/buildbot/terminal
fx build
照常在硬件或模拟器上启动 Fuchsia。
使用 fx test --e2e
运行测试的主机端入口点。例如:
fx test --e2e host_x64/fidlc_microbenchmarks_test
该测试会将结果写入新创建的带时间戳的 out/test_out
子目录。其中包括包含性能结果的 *.fuchsiaperf.json
文件。它可能包含其他文件,例如 Fuchsia 跟踪记录。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-03-15。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]