Skip to content

Commit

Permalink
Update Katana benchmark CI (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Jul 17, 2024
1 parent efffe5c commit fa002d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ permissions:
contents: write

jobs:
build:
bench-katana:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:v1.0.0-alpha.1
steps:
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: cargo bench --bench codec -- --output-format bencher |sed 1d | tee output.txt
- name: Running Katana benchmarks
run: cargo bench --bench codec --bench execution -- --output-format bencher |sed 1d | tee output.txt
- uses: benchmark-action/github-action-benchmark@v1
with:
tool: "cargo"
Expand Down
2 changes: 1 addition & 1 deletion crates/katana/executor/benches/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn blockifier(
// convert to blockifier block context
let block_context = block_context_from_envs(&block_envs.0, &block_envs.1);

group.bench_function("Blockifier", |b| {
group.bench_function("Blockifier.Cold", |b| {
// we need to set up the cached state for each iteration as it's not cloneable
b.iter_batched(
|| {
Expand Down

0 comments on commit fa002d5

Please sign in to comment.