forked from base/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-example-benchmarks.sh
More file actions
executable file
·34 lines (31 loc) · 978 Bytes
/
run-example-benchmarks.sh
File metadata and controls
executable file
·34 lines (31 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -eo pipefail
BENCHMARK_CONFIGS=(
configs/examples/contract.yml
configs/examples/ecadd.yml
configs/examples/ecmul.yml
configs/examples/ecpairing.yml
configs/examples/erc20.yml
configs/examples/simulator.yml
configs/examples/sload.yml
configs/examples/builder.yml
configs/examples/base-reth-node.yml
configs/examples/sstore.yml
# configs/examples/snapshot.yml
# configs/examples/tx-fuzz-geth.yml
)
TEMP_DIR=$1
for config in "${BENCHMARK_CONFIGS[@]}"; do
echo "Running $config"
# each config will add on to the same output directory
go run benchmark/cmd/main.go \
--log.level debug \
run \
--config $config \
--root-dir $TEMP_DIR/data-dir \
--output-dir $TEMP_DIR/output \
--reth-bin $TEMP_DIR/bin/reth \
--geth-bin $TEMP_DIR/bin/geth \
--builder-bin $TEMP_DIR/bin/builder \
--base-reth-node-bin $TEMP_DIR/bin/base-reth-node
done