mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Improved OHOS Benchmarking to use different websites (#37055)
Workflow changes includes to allow a given runs.json file to be read by hitrace-bench and perform the benchmarks. It depends on the updated CI tools. Requires CI modification in https://github.com/servo/ci-runners/pull/36. Testing: This change was tested on the CI. https://github.com/Narfinger/servo/actions/runs/15157760046/job/42616776563 A corresponding bencher output is here: https://bencher.dev/console/projects/servo-ci/reports/99a369f7-e6c3-4141-83f9-0ecddac484a5?back=L2NvbnNvbGUvcHJvamVjdHMvc2Vydm8tY2kvcmVwb3J0cz9wZXJfcGFnZT04JnBhZ2U9MQ%3D%3D Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
1d9204b4b1
commit
4c1a09e17b
2 changed files with 58 additions and 2 deletions
15
.github/workflows/ohos.yml
vendored
15
.github/workflows/ohos.yml
vendored
|
@ -169,11 +169,16 @@ jobs:
|
|||
- name: Build for aarch64 HarmonyOS
|
||||
run: |
|
||||
./mach build --locked --target aarch64-unknown-linux-ohos --profile=${{ inputs.profile }} --flavor=harmonyos --no-default-features --features tracing,tracing-hitrace
|
||||
- name: Upload supprt/hitrace-bencher/runs.json
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: runs.json
|
||||
path: support/hitrace-bencher/runs.json
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
# Upload the **unsigned** artifact - We don't have the signing materials in pull request workflows
|
||||
path: target/openharmony/aarch64-unknown-linux-ohos/${{ inputs.profile }}/entry/build/harmonyos/outputs/default/servoshell-default-unsigned.hap
|
||||
name: servoshell-hos-${{ inputs.profile }}.hap
|
||||
path: target/openharmony/aarch64-unknown-linux-ohos/${{ inputs.profile }}/entry/build/harmonyos/outputs/default/servoshell-default-unsigned.hap
|
||||
|
||||
|
||||
test-harmonyos-aarch64:
|
||||
|
@ -239,8 +244,14 @@ jobs:
|
|||
[[ $servo_pid =~ ^[0-9]+$ ]] || { echo "It looks like servo crashed!" ; exit 1; }
|
||||
# If the grep fails, then the trace output for the "page loaded" prompt is missing
|
||||
grep 'org\.servo\.servo-.* tracing_mark_write.*PageLoadEndedPrompt' test_output/servo.ftrace
|
||||
- name: Getting runs file
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
# Name of the artifact to download.
|
||||
# If unspecified, all artifacts for the run are downloaded.
|
||||
name: runs.json
|
||||
- name: "Run benchmark"
|
||||
run: hitrace-bench --bencher -b "org.servo.servo" -p "https://www.servo.org" -n 5
|
||||
run: hitrace-bench -r runs.json
|
||||
- name: Getting bencher
|
||||
uses: bencherdev/bencher@main
|
||||
- name: Getting model name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue