Skip to content

Commit 3ffacc6

Browse files
LeoPatOZ0xNeshi
andauthored
Enable & Fix bench ci (#313)
<!-- Append the issue number --> Resolves #312 --------- Co-authored-by: 0xNeshi <[email protected]>
1 parent 574fc0d commit 3ffacc6

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

.github/workflows/base_benchmarks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Base Benchmarks
22

3-
# on:
4-
# push:
5-
# branches: [main, release-v*]
6-
# paths:
7-
# - "src/**"
8-
# - "benches/**"
9-
# - "Cargo.toml"
10-
# - "Cargo.lock"
3+
on:
4+
push:
5+
branches: [main, release-v*]
6+
paths:
7+
- "src/**"
8+
- "benches/**"
9+
- "Cargo.toml"
10+
- "Cargo.lock"
1111

1212
# If new code is pushed to a PR branch, then cancel in progress workflows for
1313
# that PR. Ensures that we don't waste CI time, and returns results quicker.

.github/workflows/pr_benchmarks.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: PR Benchmarks
22

3-
# on:
4-
# pull_request:
5-
# types: [opened, reopened, edited, synchronize]
6-
# paths:
7-
# - "src/**"
8-
# - "benches/**"
9-
# - "Cargo.toml"
10-
# - "Cargo.lock"
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
paths:
7+
- "src/**"
8+
- "benches/**"
9+
- "Cargo.toml"
10+
- "Cargo.lock"
1111

1212
# If new code is pushed to a PR branch, then cancel in progress workflows for
1313
# that PR. Ensures that we don't waste CI time, and returns results quicker.
@@ -26,7 +26,7 @@ jobs:
2626
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
2727
runs-on: ubuntu-latest
2828
permissions:
29-
checks: write
29+
pull-requests: write
3030
strategy:
3131
fail-fast: false
3232
matrix:

benches/dumps/state_100000.json.gz

-76.8 KB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"event_count": 100000,
33
"contract_address": "0x5fbdb2315678afecb367f032d93f642f64180aa3",
4-
"block_number": 4073,
5-
"generation_time_secs": 40.748213375,
6-
"anvil_version": "anvil 0.2.0 (c13d42e 2024-11-19T00:21:45.718659032Z)"
4+
"block_number": 3298,
5+
"generation_time_secs": 32.816945,
6+
"anvil_version": "anvil Version: 1.5.1-stable\nCommit SHA: b0a9dd9ceda36f63e2326ce530c10e6916f4b8a2\nBuild Timestamp: 2025-12-22T11:41:09.812070000Z (1766403669)\nBuild Profile: maxperf"
77
}

benches/historic_scanning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ fn historic_scanning_benchmark(c: &mut Criterion) {
7272
let mut group = c.benchmark_group("historic_scanning");
7373

7474
group.warm_up_time(std::time::Duration::from_secs(5));
75+
group.measurement_time(std::time::Duration::from_secs(60));
7576

7677
// Load environment from pre-generated dump (100k events)
7778
println!("Loading benchmark environment from dump file...");

benches/latest_events_scanning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ fn latest_events_scanning_benchmark(c: &mut Criterion) {
7777
let mut group = c.benchmark_group("latest_events_scanning");
7878

7979
group.warm_up_time(std::time::Duration::from_secs(5));
80+
group.measurement_time(std::time::Duration::from_secs(60));
8081

8182
// Load environment from pre-generated dump (100k events)
8283
println!("Loading benchmark environment from dump file...");

0 commit comments

Comments
 (0)