Skip to content

bench ft

bench ft #7023

Workflow file for this run

name: Benchmarks
on:
pull_request:
merge_group:
workflow_dispatch:
jobs:
tx-injection-single-node:
name: "tx injections single-node benchmark"
runs-on: [self-hosted, ubuntu24.04]
timeout-minutes: 60
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
steps:
- name: Install jq json processor
run: sudo apt-get update && sudo apt-get install jq
- uses: actions/checkout@v4
with:
persist-credentials: false
# Install all the required tools
- uses: taiki-e/install-action@7852930e42e73b6c323ae4435f5135b58754dfdd
with:
tool: just
- name: Build neard
run:
cargo build --release --features tx_generator --config .cargo/config.profiling.toml
- name: Build synth-bm
run: |
cd benchmarks/synth-bm
cargo build --release
- name: Run Transactions Generator
run: |
cd benchmarks/transactions-generator
ln -s ../../target/release/neard
printf '%s\n' '{ "tx_generator": { "accounts_path": "{{near_accounts_path}}", "schedule": [ { "tps": 20000, "duration_s": 120 } ] } }' > tx-generator-settings.json
just init-localnet
just unlimit
just create-accounts 50000
just enable-tx
just run-localnet