Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 7407890

Browse files
committed
fix
1 parent 91e8d94 commit 7407890

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/baseline_http_bench.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@ jobs:
7777
id: generate-report
7878
run: |
7979
ACTIX_RPS=$(jq '.metrics.http_reqs.rate' actix_results.json)
80-
ACTIX_P95=$(jq '.metrics.http_req_duration.percentiles["95.0"]' actix_results.json)
80+
ACTIX_P95=$(jq '.metrics.http_req_duration.percentiles["95.0"] // 0' actix_results.json)
8181
CONDUCTOR_RPS=$(jq '.metrics.http_reqs.rate' conductor_results.json)
82-
CONDUCTOR_P95=$(jq '.metrics.http_req_duration.percentiles["95.0"]' conductor_results.json)
82+
CONDUCTOR_P95=$(jq '.metrics.http_req_duration.percentiles["95.0"] // 0' conductor_results.json)
8383
84+
# Round the results to whole numbers
8485
ACTIX_RPS_ROUNDED=$(printf "%.0f" $ACTIX_RPS)
85-
ACTIX_P95_ROUNDED=$(printf "%.0f" ${ACTIX_P95:-0})
86+
ACTIX_P95_ROUNDED=$(printf "%.0f" $ACTIX_P95)
8687
CONDUCTOR_RPS_ROUNDED=$(printf "%.0f" $CONDUCTOR_RPS)
87-
CONDUCTOR_P95_ROUNDED=$(printf "%.0f" ${CONDUCTOR_P95:-0})
88+
CONDUCTOR_P95_ROUNDED=$(printf "%.0f" $CONDUCTOR_P95)
8889
90+
# Generate the Markdown report
8991
echo "## Benchmark Results" > benchmark_results.md
9092
echo "| Implementation | Requests/sec | P95 Latency (ms) |" >> benchmark_results.md
9193
echo "|----------------|--------------|------------------|" >> benchmark_results.md

0 commit comments

Comments
 (0)