Skip to content

Commit 2110a2c

Browse files
feat(benchmark): add benchmark repricing ci workflow
1 parent 79e7a7b commit 2110a2c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ jobs:
8181
- name: Fill benchmark tests
8282
run: tox -e benchmark
8383

84+
benchmark_repricing:
85+
runs-on: [self-hosted-ghr, size-xl-x64]
86+
needs: static
87+
steps:
88+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
89+
with:
90+
submodules: recursive
91+
- name: Setup Python
92+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
93+
with:
94+
python-version: "3.11"
95+
- uses: ./.github/actions/setup-env
96+
- uses: ./.github/actions/build-evmone
97+
- name: Fill benchmark tests for fixed opcode counts
98+
run: tox -e benchmark_repricing
99+
84100
json_infra:
85101
runs-on: [self-hosted-ghr, size-xl-x64]
86102
needs: static

tox.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,21 @@ commands =
125125
--fork Prague \
126126
tests/benchmark
127127

128+
[testenv:benchmark_repricing]
129+
description = Run the benchmark tests for repricing analysis
130+
commands =
131+
fill \
132+
--generate-all-formats \
133+
--fixed-opcode-count 10 \
134+
--evm-bin=evmone-t8n \
135+
-m "benchmark and not state_test" \
136+
-n auto --maxprocesses 10 --dist=loadgroup \
137+
--basetemp="{temp_dir}/pytest" \
138+
--log-to "{toxworkdir}/logs" \
139+
--clean \
140+
--fork Prague \
141+
tests/benchmark/compute
142+
128143
[testenv:optimized]
129144
description = Run unit tests for optimized state and ethash
130145
passenv =

0 commit comments

Comments
 (0)