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
25 changes: 14 additions & 11 deletions .github/workflows/base_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ jobs:
python: 3.11
os: ubuntu-22.04
- name: Set env vars
run: cat ./extras/benchmarking/.env >> $GITHUB_ENV
run: cat ./extras/benchmarking/sync_v2/.env >> $GITHUB_ENV
- name: Download benchmark data
run: |
wget $BENCH_DATA_URL
tar -xzf $BENCH_DATA_FILE_NAME.tar.gz
mkdir $SERVER_DATA_DIR
poetry run hathor-cli quick_test \
poetry run hathor-cli load-from-logs \
--testnet \
--data $SERVER_DATA_DIR \
--cache \
--cache-size $CACHE_SIZE \
--quit-after-n-blocks $N_BLOCKS
--x-localhost-only \
--log-dump $BENCH_DATA_FILE_NAME
- name: Run server node
run: |
poetry run hathor-cli run_node \
Expand All @@ -48,11 +51,11 @@ jobs:
- name: Track base branch benchmarks with Bencher
run: |
bencher run \
--project hathor-core \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch master \
--testbed ubuntu-22.04 \
--adapter shell_hyperfine \
--err \
--file $BENCH_FILE \
'./extras/benchmarking/benchmark_sync_v2.sh'
--project hathor-core \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch master \
--testbed ubuntu-22.04 \
--adapter shell_hyperfine \
--err \
--file $BENCH_FILE \
'./extras/benchmarking/sync_v2/benchmark_sync_v2.sh'
11 changes: 7 additions & 4 deletions .github/workflows/pr_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@ jobs:
python: 3.11
os: ubuntu-22.04
- name: Set env vars
run: cat ./extras/benchmarking/.env >> $GITHUB_ENV
run: cat ./extras/benchmarking/sync_v2/.env >> $GITHUB_ENV
- name: Download benchmark data
run: |
wget $BENCH_DATA_URL
tar -xzf $BENCH_DATA_FILE_NAME.tar.gz
mkdir $SERVER_DATA_DIR
poetry run hathor-cli quick_test \
poetry run hathor-cli load-from-logs \
--testnet \
--data $SERVER_DATA_DIR \
--cache \
--cache-size $CACHE_SIZE \
--quit-after-n-blocks $N_BLOCKS
--x-localhost-only \
--log-dump $BENCH_DATA_FILE_NAME
- name: Run server node
run: |
poetry run hathor-cli run_node \
Expand All @@ -62,4 +65,4 @@ jobs:
--err \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--file $BENCH_FILE \
'./extras/benchmarking/benchmark_sync_v2.sh'
'./extras/benchmarking/sync_v2/benchmark_sync_v2.sh'
7 changes: 0 additions & 7 deletions extras/benchmarking/.env

This file was deleted.

9 changes: 9 additions & 0 deletions extras/benchmarking/sync_v2/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BENCH_DATA_FILE_NAME=ci_testnet_upto_20k
BENCH_DATA_URL=https://hathor-public-files.s3.amazonaws.com/hathor-core-ci/ci_testnet_upto_20k.tar.gz
N_BLOCKS=20000
CACHE_SIZE=100000
SERVER_DATA_DIR=server-data
TCP_PORT=40403
N_RUNS=2
BENCH_FILE=testnet_upto_20k_results.json
BENCH_DATA_DIR=bench-data