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

Commit 91e8d94

Browse files
committed
fix
1 parent 79228ea commit 91e8d94

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/baseline_http_bench.yaml

+16-6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
wait-for: 5m
4141
log-output-if: failure
4242
log-output: true
43+
4344
# Benchmark Actix Web with k6
4445
- name: Benchmark Actix Web
4546
run: |
@@ -49,6 +50,7 @@ jobs:
4950
- name: Stop Actix Web Server
5051
run: pkill -f actix_web_server || true
5152

53+
5254
# Build and run Conductor server in the background
5355
- name: Run Conductor Server
5456
uses: JarvusInnovations/background-action@v1
@@ -60,6 +62,11 @@ jobs:
6062
log-output-if: failure
6163
log-output: true
6264

65+
- name: Cooldown Period
66+
run: |
67+
echo "Cooling down for 30 seconds..."
68+
sleep 30
69+
6370
# Benchmark Conductor with k6
6471
- name: Benchmark Conductor
6572
run: |
@@ -70,17 +77,20 @@ jobs:
7077
id: generate-report
7178
run: |
7279
ACTIX_RPS=$(jq '.metrics.http_reqs.rate' actix_results.json)
73-
ACTIX_P95=$(jq '.metrics.http_req_duration["percentiles"]["95.0"]' actix_results.json)
80+
ACTIX_P95=$(jq '.metrics.http_req_duration.percentiles["95.0"]' actix_results.json)
7481
CONDUCTOR_RPS=$(jq '.metrics.http_reqs.rate' conductor_results.json)
75-
CONDUCTOR_P95=$(jq '.metrics.http_req_duration["percentiles"]["95.0"]' conductor_results.json)
82+
CONDUCTOR_P95=$(jq '.metrics.http_req_duration.percentiles["95.0"]' conductor_results.json)
83+
84+
ACTIX_RPS_ROUNDED=$(printf "%.0f" $ACTIX_RPS)
85+
ACTIX_P95_ROUNDED=$(printf "%.0f" ${ACTIX_P95:-0})
86+
CONDUCTOR_RPS_ROUNDED=$(printf "%.0f" $CONDUCTOR_RPS)
87+
CONDUCTOR_P95_ROUNDED=$(printf "%.0f" ${CONDUCTOR_P95:-0})
7688
7789
echo "## Benchmark Results" > benchmark_results.md
7890
echo "| Implementation | Requests/sec | P95 Latency (ms) |" >> benchmark_results.md
7991
echo "|----------------|--------------|------------------|" >> benchmark_results.md
80-
echo "| Actix Web | $ACTIX_RPS | $ACTIX_P95 |" >> benchmark_results.md
81-
echo "| Conductor | $CONDUCTOR_RPS | $CONDUCTOR_P95 |" >> benchmark_results.md
82-
83-
cat benchmark_results.md
92+
echo "| Actix Web | $ACTIX_RPS_ROUNDED | $ACTIX_P95_ROUNDED |" >> benchmark_results.md
93+
echo "| Conductor | $CONDUCTOR_RPS_ROUNDED | $CONDUCTOR_P95_ROUNDED |" >> benchmark_results.md
8494
8595
# Post Comment on PR
8696
- name: Comment on Pull Request

0 commit comments

Comments
 (0)