Skip to content

Commit 09e05c9

Browse files
committed
ci: switch benchmarks to use tco
1 parent 9a2df6e commit 09e05c9

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/benchmark-call.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ on:
107107
env:
108108
S3_METRICS_PATH: s3://openvm-public-data-sandbox-us-east-1/benchmark/github/metrics
109109
S3_FLAMEGRAPHS_PATH: s3://openvm-public-data-sandbox-us-east-1/benchmark/github/flamegraphs
110-
FEATURE_FLAGS: "metrics,parallel,nightly-features"
110+
FEATURE_FLAGS: "metrics,parallel,nightly-features,tco"
111111
INPUT_ARGS: ""
112112
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
113113

.github/workflows/benchmarks-execute.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ env:
2727
CARGO_TERM_COLOR: always
2828
S3_FIXTURES_PATH: s3://openvm-public-data-sandbox-us-east-1/benchmark/fixtures
2929
JEMALLOC_SYS_WITH_MALLOC_CONF: "retain:true,background_thread:true,metadata_thp:always,thp:always,dirty_decay_ms:10000,muzzy_decay_ms:10000,abort_conf:true"
30+
TOOLCHAIN: "+nightly-2025-08-19"
3031

3132
jobs:
3233
codspeed-walltime-benchmarks:
@@ -65,12 +66,12 @@ jobs:
6566

6667
- name: Build benchmarks
6768
working-directory: benchmarks/execute
68-
run: cargo codspeed build --profile maxperf
69+
run: cargo $TOOLCHAIN codspeed build --profile maxperf
6970
- name: Run benchmarks
7071
uses: CodSpeedHQ/action@v3
7172
with:
7273
working-directory: benchmarks/execute
73-
run: cargo codspeed run
74+
run: cargo $TOOLCHAIN codspeed run
7475
token: ${{ secrets.CODSPEED_TOKEN }}
7576

7677
codspeed-instrumentation-benchmarks:
@@ -110,10 +111,10 @@ jobs:
110111

111112
- name: Build benchmarks
112113
working-directory: benchmarks/execute
113-
run: cargo codspeed build
114+
run: cargo $TOOLCHAIN codspeed build
114115
- name: Run benchmarks
115116
uses: CodSpeedHQ/action@v3
116117
with:
117118
working-directory: benchmarks/execute
118-
run: cargo codspeed run
119+
run: cargo $TOOLCHAIN codspeed run
119120
token: ${{ secrets.CODSPEED_TOKEN }}

ci/scripts/bench.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ def run_cargo_command(
1515
kzg_params_dir,
1616
profile="release"
1717
):
18+
toolchain = "+1.86"
19+
if "tco" in feature_flags:
20+
toolchain = "+nightly-2025-08-19"
1821
# Command to run (for best performance but slower builds, use --profile maxperf)
1922
command = [
20-
"cargo", "run", "--no-default-features", "-p", "openvm-benchmarks-prove", "--bin", bin_name, "--profile", profile, "--features", ",".join(feature_flags), "--"
23+
"cargo", toolchain, "run", "--no-default-features", "-p", "openvm-benchmarks-prove", "--bin", bin_name, "--profile", profile, "--features", ",".join(feature_flags), "--"
2124
]
2225

2326
if app_log_blowup is not None:

0 commit comments

Comments
 (0)