Skip to content

Commit 9f65fd3

Browse files
committed
Rename genesis-l2-ci to genesis-perf-ci
1 parent a660bc5 commit 9f65fd3

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.github/workflows/main_flamegraph_report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ jobs:
237237
cargo build --release --bin ethrex --features dev
238238
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -c "record -o perf.data -F997 --call-graph dwarf,16384 -g" \
239239
--bin ethrex --release --features dev -- \
240-
--dev --network /home/runner/work/ethrex/ethrex/test_data/genesis-l2-ci.json --http.port 1729 >/dev/null &
240+
--dev --network /home/runner/work/ethrex/ethrex/test_data/genesis-perf-ci.json --http.port 1729 >/dev/null &
241241
sleep 10
242242
echo "Executing load test..."
243243
bash /home/runner/work/ethrex/ethrex/.github/scripts/flamegraph_watcher.sh &&
@@ -352,7 +352,7 @@ jobs:
352352
rm -rf target/profiling/reth
353353
cargo build --bin reth --profile profiling
354354
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -c "record -o perf.data -F997 --call-graph dwarf,16384 -g" --bin reth --profile profiling -- \
355-
node --chain /home/runner/work/ethrex/ethrex/test_data/genesis-l2-ci.json --dev \
355+
node --chain /home/runner/work/ethrex/ethrex/test_data/genesis-perf-ci.json --dev \
356356
--dev.block-time 1000ms --http.port 1729 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 \
357357
--txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 \
358358
--txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000 >/dev/null &

.github/workflows/pr_perf_blocks_exec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
BINS="base,head"
8484
hyperfine --setup "./bin/ethrex-base removedb" -w 5 -N -r 10 --show-output --export-markdown "bench_pr_comparison.md" \
8585
-L bin "$BINS" -n "{bin}" \
86-
"./bin/ethrex-{bin} --network test_data/genesis-l2-ci.json --force import ./test_data/l2-1k-erc20.rlp --removedb"
86+
"./bin/ethrex-{bin} --network test_data/genesis-perf-ci.json --force import ./test_data/l2-1k-erc20.rlp --removedb"
8787
echo -e "## Benchmark Block Execution Results Comparison Against Main\n\n$(cat bench_pr_comparison.md)" > bench_pr_comparison.md
8888
- name: Upload PR results
8989
uses: actions/upload-artifact@v4

cmd/ethrex/bench/import_blocks_benchmark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn block_import() {
1414

1515
let evm_engine = EvmEngine::default();
1616

17-
let network = "../../test_data/genesis-l2-ci.json";
17+
let network = "../../test_data/genesis-perf-ci.json";
1818

1919
let rt = tokio::runtime::Runtime::new().unwrap();
2020
rt.block_on(import_blocks(

cmd/load_test/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ On some machines, this fixes the `ERROR axum::serve::listener: accept error: Too
3131
To run a load test, first run the node using a command like the following in the root folder:
3232

3333
```bash
34-
cargo run --bin ethrex --release --features dev -- --network test_data/genesis-l2-ci.json --dev
34+
cargo run --bin ethrex --release --features dev -- --network test_data/genesis-perf-ci.json --dev
3535
```
3636

3737
Genesis-l2-ci has many rich accounts and does not include the prague fork, which is important for dev mode until it's fixed.
@@ -73,39 +73,39 @@ Load tests are usually used to get performance metrics. We usually want to gener
7373
To produce a flamegraph, run the node in the following way.
7474

7575
```bash
76-
cargo flamegraph --root --bin ethrex --release --features dev -- --network test_data/genesis-l2-ci.json --dev
76+
cargo flamegraph --root --bin ethrex --release --features dev -- --network test_data/genesis-perf-ci.json --dev
7777
```
7878

7979
The "root" command is only needed for mac. It can be removed if running on linux.
8080

8181
For a samply report, run the following:
8282

8383
```bash
84-
samply record cargo run --bin ethrex --release --features dev -- --network test_data/genesis-l2-ci.json --dev
84+
samply record cargo run --bin ethrex --release --features dev -- --network test_data/genesis-perf-ci.json --dev
8585
```
8686

8787
## Interacting with reth
8888

8989
The same load test can be run, the only difference is how you run the node:
9090

9191
```bash
92-
cargo run --release -- node --chain <path_to_ethrex>/test_data/genesis-l2-ci.json --dev --dev.block-time 5000ms --http.port 8545 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 --txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 --txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000
92+
cargo run --release -- node --chain <path_to_ethrex>/test_data/genesis-perf-ci.json --dev --dev.block-time 5000ms --http.port 8545 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 --txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 --txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000
9393
```
9494

9595
All of the txpool parameters are to make sure that it doesn't discard transactions sent by the load test. Trhoughput measurements in the logs are typically near 1Gigagas/second. To remove the database before getting measurements again:
9696

9797
```bash
98-
cargo run --release -- db --chain <path_to_ethrex>/test_data/genesis-l2-ci.json drop -f
98+
cargo run --release -- db --chain <path_to_ethrex>/test_data/genesis-perf-ci.json drop -f
9999
```
100100

101101
To get a flamegraph of its execution, run with the same parameters, just replace `cargo run --release` with `cargo flamegraph --bin reth --profiling`:
102102

103103
```bash
104-
cargo flamegraph --bin reth --root --profiling -- node --chain ~/workspace/ethrex/test_data/genesis-l2-ci.json --dev --dev.block-time 5000ms --http.port 8545 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 --txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 --txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000
104+
cargo flamegraph --bin reth --root --profiling -- node --chain ~/workspace/ethrex/test_data/genesis-perf-ci.json --dev --dev.block-time 5000ms --http.port 8545 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 --txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 --txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000
105105
```
106106

107107
For samply we want to directly execute the binary, so that it records the binary and not cargo itself:
108108

109109
```bash
110-
samply record ./target/profiling/reth node --chain ~/workspace/ethrex/test_data/genesis-l2-ci.json --dev --dev.block-time 5000ms --http.port 8545 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 --txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 --txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000
111-
```
110+
samply record ./target/profiling/reth node --chain ~/workspace/ethrex/test_data/genesis-perf-ci.json --dev --dev.block-time 5000ms --http.port 8545 --txpool.max-pending-txns 100000000 --txpool.max-new-txns 1000000000 --txpool.pending-max-count 100000000 --txpool.pending-max-size 10000000000 --txpool.basefee-max-count 100000000000 --txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000
111+
```

crates/l2/prover/tests/perf_zkvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async fn test_performance_zkvm() {
3636
async fn setup() -> (ProgramInput, Block) {
3737
let path = Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/../../../test_data"));
3838

39-
let genesis_file_path = path.join("genesis-l2-ci.json");
39+
let genesis_file_path = path.join("genesis-perf-ci.json");
4040
// l2-loadtest.rlp has blocks with many txs.
4141
let chain_file_path = path.join("l2-loadtest.rlp");
4242

crates/l2/utils/prover/save_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ mod tests {
413413
let path = Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/../../test_data"));
414414

415415
let chain_file_path = path.join("l2-loadtest.rlp");
416-
let genesis_file_path = path.join("genesis-l2-ci.json");
416+
let genesis_file_path = path.join("genesis-perf-ci.json");
417417

418418
// Create an InMemory Store to later perform an execute_block so we can have the Vec<AccountUpdate>.
419419
let in_memory_db =
File renamed without changes.

0 commit comments

Comments
 (0)