CI: OHOS Use mitmproxy with forwarding mode in hitrace-bench (#42508)

This updates to a new hitrace-bench version which supports to handle
mitmproxy by automatically starting and destroying it for the
benchmarks.

Currently we are only in forwarding mode and do _not_ replay responses.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Testing:
https://github.com/Narfinger/servo/actions/runs/21867906670/job/63114716882

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Co-authored-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
This commit is contained in:
Narfinger
2026-02-11 11:25:30 +01:00
committed by GitHub
parent dbc8a7f9da
commit 9993a2168a
2 changed files with 5 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ env:
SHELL: /bin/bash
CARGO_INCREMENTAL: 0
BENCHER_PROJECT: ${{ vars.BENCHER_PROJECT || 'servo' }}
HITRACE_BENCH_VERSION: 0.10.0
HITRACE_BENCH_VERSION: 0.11.0
MITMDUMP_CACHE_KEY: mitmdump-ohos-cache-0.1
jobs:

View File

@@ -5,7 +5,8 @@
{
"run_args": {
"url": "https://www.google.com", // the url to test
"tries": 5 // How many repeated tries we should have, we show the min,max,avg in the output
"tries": 5, // How many repeated tries we should have, we show the min,max,avg in the output
"mitmproxy": true // Use mitmproxy in forwarding mode
//"trace_buffer": 524288, // trace_buffer size of hitrace
//"sleep": 10, // how long should we wait for servo to load the page
//"commands": ["--ps=--tracing-filter", "info"] // arbitrary additional arguments
@@ -64,7 +65,8 @@
{
"run_args": {
"url": "https://www.servo.org",
"tries": 5
"tries": 5,
"mitmproxy": true
},
"filters": [
{