Files
reth/crates/stages/benches
Alexey Shekhirin 6b5b6f7a40 Breaking changes (#5191)
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
Co-authored-by: joshieDo <ranriver@protonmail.com>
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Thomas Coratger <thomas.coratger@gmail.com>
2024-02-29 12:37:28 +00:00
..
2024-02-29 12:37:28 +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=