1.4 KiB
1.4 KiB
Caliper performance hook — Chain 138 (Besu)
Last updated: 2026-03-28
Purpose: Satisfy dbis_chain_138_technical_master_plan.md Section 14 without vendoring Caliper into this repository.
Approach
- Use upstream Hyperledger Caliper (npm package
/@hyperledger/caliper-cli). - Create a separate working directory (or CI job) with:
networkconfig.jsonpointingurlto Chain 138 HTTP RPC (prefer an isolated load-test node, not production public RPC).benchmarks/with a minimalreadworkload (eth_blockNumber,eth_getBlockByNumber) before write-heavy contracts.
- Run:
npx caliper launch manager --caliper-workspace . --caliper-networkconfig networkconfig.json --caliper-benchconfig benchmarks/config.yaml - Archive results (HTML/JSON) next to Phase 1 discovery reports if desired:
reports/phase1-discovery/orreports/caliper/.
Safety
- Use low transaction rates first; Besu validators and RPC tier are production assets.
- Do not point Caliper at validator JSON-RPC ports; use RPC tier only.
- Align gas and chain ID with
smom-dbis-138/.envand DEPLOYMENT_ORDER_OF_OPERATIONS.md.
Wrapper
bash scripts/verify/print-caliper-chain138-stub.sh prints this path and suggested env vars (no network I/O).