mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:40:42 +00:00
ci: polish source performance report
This commit is contained in:
1
.github/workflows/openclaw-performance.yml
vendored
1
.github/workflows/openclaw-performance.yml
vendored
@@ -327,6 +327,7 @@ jobs:
|
||||
run_dir="$SOURCE_PERF_DIR/mock-hello/run-$(printf '%03d' "$run_index")"
|
||||
pnpm openclaw qa suite \
|
||||
--provider-mode mock-openai \
|
||||
--model "mock-openai/${PERFORMANCE_MODEL_ID}" \
|
||||
--concurrency 1 \
|
||||
--output-dir "$(realpath --relative-to="$GITHUB_WORKSPACE" "$run_dir")" \
|
||||
--scenario channel-chat-baseline
|
||||
|
||||
@@ -160,10 +160,17 @@ function buildCliRows(cli) {
|
||||
formatMs(commandCase.summary?.durationMs?.p50),
|
||||
formatMs(commandCase.summary?.durationMs?.p95),
|
||||
formatMb(commandCase.summary?.maxRssMb?.p95),
|
||||
commandCase.summary?.exitSummary ?? "n/a",
|
||||
formatExitSummary(commandCase.summary?.exitSummary),
|
||||
]);
|
||||
}
|
||||
|
||||
function formatExitSummary(value) {
|
||||
if (typeof value !== "string" || !value) {
|
||||
return "n/a";
|
||||
}
|
||||
return value.replaceAll(/\b(code:(?:null|-?\d+)|signal:[^,\s]+)x(\d+)\b/g, "$1 x$2");
|
||||
}
|
||||
|
||||
function buildObservationRows(summary) {
|
||||
return (summary?.observations ?? []).map((observation) => [
|
||||
observation.kind ?? "unknown",
|
||||
|
||||
Reference in New Issue
Block a user