Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/publish-node-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main]
paths:
- "tools/node_bench/node_bench.sh"
- ".github/workflows/publish-node-bench.yml"
workflow_dispatch:

jobs:
Expand All @@ -26,7 +27,20 @@ jobs:
set -euo pipefail
file="tools/node_bench/node_bench.sh"
[[ -f "$file" ]] || { echo "missing $file"; exit 1; }
aws s3 cp "$file" "s3://${R2_BUCKET}/tools/node_bench.sh" \
aws s3 cp "$file" "s3://tools/node_bench.sh" \
--endpoint-url "$R2_ENDPOINT" \
--content-type "text/x-shellscript" \
--cache-control "no-cache"

- name: Purge CDN cache
if: ${{ secrets.CLOUDFLARE_API_TOKEN != '' && secrets.CLOUDFLARE_ZONE_ID != '' }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
run: |
set -euo pipefail
payload=$(jq -n --arg url "https://storage-for-testing.erpc.global/tools/node_bench.sh" '{files: [$url]}')
curl --fail -sS -X POST "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONE_ID}/purge_cache" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \
-H "Content-Type: application/json" \
--data "${payload}"
9 changes: 9 additions & 0 deletions tools/node_bench/examples/erpc_vps_ams_4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ERPC VPS AMS (4 vCPU) — example

Machine (from provided panel and run output):

- Location: Amsterdam
- CPU: AMD EPYC 9255 (5th Gen AMD EPYC, 4 vCPU slice)
- Memory: 16GB
- Disk: 50GB
- OS: Ubuntu24.04