This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,17 @@ jobs:
77
77
id : generate-report
78
78
run : |
79
79
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)
81
81
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)
83
83
84
+ # Round the results to whole numbers
84
85
ACTIX_RPS_ROUNDED=$(printf "%.0f" $ACTIX_RPS)
85
- ACTIX_P95_ROUNDED=$(printf "%.0f" ${ ACTIX_P95:-0} )
86
+ ACTIX_P95_ROUNDED=$(printf "%.0f" $ACTIX_P95)
86
87
CONDUCTOR_RPS_ROUNDED=$(printf "%.0f" $CONDUCTOR_RPS)
87
- CONDUCTOR_P95_ROUNDED=$(printf "%.0f" ${ CONDUCTOR_P95:-0} )
88
+ CONDUCTOR_P95_ROUNDED=$(printf "%.0f" $CONDUCTOR_P95)
88
89
90
+ # Generate the Markdown report
89
91
echo "## Benchmark Results" > benchmark_results.md
90
92
echo "| Implementation | Requests/sec | P95 Latency (ms) |" >> benchmark_results.md
91
93
echo "|----------------|--------------|------------------|" >> benchmark_results.md
You can’t perform that action at this time.
0 commit comments