24
24
25
25
bench :
26
26
needs : label_trigger
27
- runs-on : [ self-hosted, gcp ]
27
+ runs-on :
28
+ - runs-on=${{ github.run_id }}
29
+ - family=c7i.8xlarge
30
+ - image=ubuntu24-full-x64
31
+ - disk=large
28
32
strategy :
29
33
matrix :
30
34
benchmark :
@@ -34,21 +38,16 @@ jobs:
34
38
name : Compression
35
39
if : ${{ contains(github.event.head_commit.message, '[benchmark]') || github.event.label.name == 'benchmark' && github.event_name == 'pull_request' }}
36
40
steps :
41
+ - uses : runs-on/action@v1
37
42
- uses : actions/checkout@v4
38
- - uses : ./.github/actions/cleanup
39
- - uses : ./.github/actions/setup-rust
43
+ # rustup is pre-installed on the ubuntu24-full-x64 image.
44
+
40
45
# The compression benchmarks rely on DuckDB being installed to convert CSV to Parquet
41
46
- name : Install DuckDB
42
47
43
- if : runner.environment != 'self-hosted'
44
48
with :
45
49
version : v1.0.0
46
50
47
- - name : Set tempdir
48
- if : runner.environment == 'self-hosted'
49
- run : |
50
- echo "TMPDIR=/work" >> $GITHUB_ENV
51
-
52
51
- name : Run ${{ matrix.benchmark.name }} benchmark
53
52
shell : bash
54
53
env :
61
60
with :
62
61
role-to-assume : arn:aws:iam::375504701696:role/GitHubBenchmarkRole
63
62
aws-region : us-east-1
63
+
64
64
- name : Install uv
65
65
uses : astral-sh/setup-uv@v5
66
+
66
67
- name : Compare results
67
68
shell : bash
68
69
run : |
@@ -81,11 +82,13 @@ jobs:
81
82
uv run scripts/compare-benchmark-jsons.py base.json ${{ matrix.benchmark.id }}.json \
82
83
>> comment.md
83
84
echo '</details>' >> comment.md
85
+
84
86
- name : Comment PR
85
87
uses : thollander/actions-comment-pull-request@v3
86
88
with :
87
89
file-path : comment.md
88
90
comment-tag : bench-pr-comment-${{ matrix.benchmark.id }}
91
+
89
92
sql :
90
93
needs : label_trigger
91
94
uses : ./.github/workflows/sql-benchmarks.yml
0 commit comments