Files
reth/crates/stages/benches
joshieDo 28f3a2e2d9 feat: add EtlConfig as well as setting the directory to datadir (#7124)
Co-authored-by: Mikhail Sozin <mikhail.sozin@chainstack.com>
Co-authored-by: Misha <mikawamp@gmail.com>
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
2024-03-13 16:06:50 +00:00
..
2024-02-29 12:37:28 +00:00
2023-03-29 14:49:50 +02:00

Stage Benchmarks

Test vectors are automatically generated if they cannot be found. Furthermore, for certain stages you can link an external database to run the benchmarks.

Usage

It will run the normal criterion benchmark.

cargo bench --package reth-stages --bench criterion --features test-utils

It will generate a flamegraph report without running any criterion analysis.

cargo bench --package reth-stages --bench criterion --features test-utils -- --profile-time=2

Flamegraph reports can be find at target/criterion/Stages/$STAGE_LABEL/profile/flamegraph.svg

External DB support

To choose an external DB, just pass an environment variable to the cargo bench command.

  • Account Hashing Stage: ACCOUNT_HASHING_DB=