如何執行效能測試
在本機執行效能測試的主要方式是執行主機端進入點。 這些進入點是在 src/tests/end_to_end/perf/ 中定義。 這些是 Fuchsia Infra 版本中用於收集效能,用於上傳至 Chromeperf 的結果。 執行其中一個進入點包括:
請使用 terminal
產品,以符合 CI 和 CQ 中 Fuchsia Infra 測試的內容。 範例:
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 追蹤記錄等其他檔案。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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":"其他"
}]