mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
feat: Compering to latest version
This commit is contained in:
parent
a9ed4f77fa
commit
314dcf8cd1
1 changed files with 11 additions and 11 deletions
22
.github/workflows/benchmark.yml
vendored
22
.github/workflows/benchmark.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
sleep 10
|
||||
- name: Benchmark PR
|
||||
run: oha -z 10s http://localhost/v1/health/version -j > benchmark.json
|
||||
- name: cleaning
|
||||
- name: Cleaning
|
||||
run: docker compose down -v
|
||||
- name: Installing latest version
|
||||
run: |
|
||||
|
|
@ -42,18 +42,18 @@ jobs:
|
|||
run: |
|
||||
echo '## :sparkles: Benchmark results' > benchmark.txt
|
||||
echo ' ' >> benchmark.txt
|
||||
echo "- Requests per second: $(jq -r '.summary.requestsPerSec|tonumber|floor' benchmark.json)" >> benchmark.txt
|
||||
echo "- Requests per second: $(jq -r '.summary.requestsPerSec|tonumber?|floor' benchmark.json)" >> benchmark.txt
|
||||
echo "- Total 200 requests: $(jq -r '.statusCodeDistribution."200"' benchmark.json)" >> benchmark.txt
|
||||
echo "- 99 latency: $(jq -r '.latencyPercentiles.p99' benchmark.json )" >> benchmark.txt
|
||||
echo ' ' >> benchmark.txt
|
||||
echo ' ' >> benchmark.txt
|
||||
echo '## :zap: Benchmark results' >> benchmark.txt
|
||||
echo ' ' >> benchmark.txt
|
||||
echo '| Metric | PR | Latest version | ' >> benchmark.txt
|
||||
echo '| --- | --- | --- | ' >> benchmark.txt
|
||||
echo '| RPS | $(jq -r '.summary.requestsPerSec|tonumber|floor' benchmark.json) | $(jq -r '.summary.requestsPerSec|tonumber|floor' benchmark-latest.json) | ' >> benchmark.txt
|
||||
echo '| 200 | $(jq -r '.statusCodeDistribution."200"' benchmark.json) | $(jq -r '.statusCodeDistribution."200"' benchmark-latest.json) | ' >> benchmark.txt
|
||||
echo '| P99 | $(jq -r '.latencyPercentiles.p99' benchmark.json ) | $(jq -r '.latencyPercentiles.p99' benchmark-latest.json ) | ' >> benchmark.txt
|
||||
echo " " >> benchmark.txt
|
||||
echo " " >> benchmark.txt
|
||||
echo "## :zap: Benchmark results" >> benchmark.txt
|
||||
echo " " >> benchmark.txt
|
||||
echo "| Metric | PR | Latest version | " >> benchmark.txt
|
||||
echo "| --- | --- | --- | " >> benchmark.txt
|
||||
echo "| RPS | $(jq -r '.summary.requestsPerSec|tonumber?|floor' benchmark.json) | $(jq -r '.summary.requestsPerSec|tonumber|floor' benchmark-latest.json) | " >> benchmark.txt
|
||||
echo "| 200 | $(jq -r '.statusCodeDistribution."200"' benchmark.json) | $(jq -r '.statusCodeDistribution."200"' benchmark-latest.json) | " >> benchmark.txt
|
||||
echo "| P99 | $(jq -r '.latencyPercentiles.p99' benchmark.json ) | $(jq -r '.latencyPercentiles.p99' benchmark-latest.json ) | " >> benchmark.txt
|
||||
- name: Save results
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue