Prerequisites
Before installing Chainbench, ensure you have the following:- Python 3.10 or higher: Check your version with
python --versionorpython3 --version - Poetry 1.7+ (optional, only if installing via Poetry): See Poetry installation guide
Chainbench is tested and supported on Python 3.10+. Earlier versions are not supported.
Installation Methods
- pip (Recommended)
- Poetry (Development)
Core Dependencies
Chainbench automatically installs these key dependencies:- locust: Core load testing framework (^2.39.0)
- click: CLI interface framework (^8.1.6)
- locust-plugins: Enhanced dashboards and metrics (^4.5.3)
- tenacity: Retry mechanisms (^9.0.0)
- base58: Encoding utilities for Solana (^2.1.1)
- solders: Solana SDK (^0.26.0)
- websocket-client: WebSocket support (^1.8.0)
- orjson: Fast JSON parsing (^3.11.2)
Verify Installation
Confirm Chainbench is installed correctly:List Available Profiles
Check that built-in profiles are accessible:List Available Methods
See which RPC methods are supported:Troubleshooting
Command Not Found
Ifchainbench command is not found after pip installation:
- Ensure pip’s binary directory is in your PATH
- Try using
python -m chainbenchorpython3 -m chainbenchinstead - Consider using a virtual environment:
Python Version Mismatch
If you get version errors:- Check your Python version:
python3 --version - Upgrade Python to 3.10 or higher
- Use pyenv or conda to manage multiple Python versions
Poetry Lock Issues
If you encounter lock file errors with Poetry:Next Steps
Now that Chainbench is installed, proceed to the quickstart guide:Quickstart Guide
Run your first blockchain benchmark in minutes