Skip to main content

Performance Benchmark

You can make sure that your machine satisfies the required technical specifications by running a performance benchmark. To do so, follow the steps below:

# Fetch source of the latest stable release
$ git clone -b stable
$ cd HydraDX-node/
# Prepare for running the benchmark
## Install Rust following
$ curl --proto '=https' --tlsv1.2 -sSf | sh
## Configure Rust
$ ./scripts/
$ rustup default nightly
## Install additional libraries
$ apt install python3-pip
$ apt install clang
# Run the benchmark
$ ./scripts/

After the benchmark executes you should see an output similar to the following:

Pallet | Time comparison (µs) | diff* (µs) | diff* (%) | | Rerun
amm | 773.00 vs 680.00 | 93.00 | 12.03 | OK |
exchange | 804.00 vs 720.00 | 84.00 | 10.44 | OK |
transaction_multi_payment| 218.00 vs 198.00 | 20.00 | 9.17 | OK |
- in the diff fields you can see the difference between the reference benchmark time and the benchmark time of your machine
- if diff is positive for all three pallets, your machine covers the minimum requirements for running a HydraDX node
- if diff deviates by -10% or more for some of the pallets, your machine might not be suitable to run a node

You can see the difference in the performance between your machine and the minimum required setup in the column diff* (%). If all three values in this column are positive, your machine should be suitable to run a HydraDX validator node. If any of the values is below -10 %, we do not recommend running a HydraDX node.

Join us at Discord if you would like to discuss your benchmark results, our community is always happy to help.