Skip to content
16 changes: 16 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ jobs:
alert-threshold: '150%'
fail-on-alert: true
comment-on-alert: true

- name: Run Block Executor benchmarks
run: |
go test -bench=BenchmarkProduceBlock -benchmem -run='^$' \
./block/internal/executing/... > block_executor_output.txt
- name: Store Block Executor benchmark result
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
with:
name: Block Executor Benchmark
tool: 'go'
output-file-path: block_executor_output.txt
auto-push: true
github-token: ${{ secrets.GITHUB_TOKEN }}
alert-threshold: '150%'
fail-on-alert: true
comment-on-alert: true
3 changes: 0 additions & 3 deletions block/internal/executing/block_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ type BlockProducer interface {

// ApplyBlock executes the block transactions and returns the new state.
ApplyBlock(ctx context.Context, header types.Header, data *types.Data) (types.State, error)

// ValidateBlock validates block structure and state transitions.
ValidateBlock(ctx context.Context, lastState types.State, header *types.SignedHeader, data *types.Data) error
}
Loading
Loading