Skip to content

Commit 5eecacc

Browse files
committed
Run and save nexmark benchmark results as part of CI.
1 parent e2e4d01 commit 5eecacc

10 files changed

Lines changed: 635 additions & 363 deletions

File tree

.github/workflows/bench.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Benchmarks
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
CARGO_INCREMENTAL: 0
8+
CARGO_NET_RETRY: 10
9+
RUST_BACKTRACE: short
10+
RUSTUP_MAX_RETRIES: 10
11+
12+
jobs:
13+
bench-skylake-2x:
14+
runs-on: [self-hosted, skylake-2x]
15+
steps:
16+
- uses: actions/checkout@v3.0.2
17+
18+
- name: Install rust
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: nightly
23+
default: true
24+
25+
- name: Restore cache
26+
uses: Swatinem/rust-cache@v1
27+
28+
# Find the PR associated with this push, if there is one. Note that this
29+
# is neede because `${{ github.event.pull_request.number }}` does not get
30+
# set on push requests.
31+
- uses: jwalton/gh-find-current-pr@v1
32+
id: findPr
33+
with:
34+
state: open
35+
36+
- name: Run Benchmarks
37+
run: |
38+
bash scripts/ci.bash
39+
40+
# Find comment with benchmark info if it exists
41+
- name: Find Comment
42+
uses: peter-evans/find-comment@v2
43+
id: fc
44+
with:
45+
issue-number: ${{ steps.findPr.outputs.pr }}
46+
comment-author: 'github-actions[bot]'
47+
body-includes: Nexmark benchmark results
48+
49+
- name: Create or update comment
50+
uses: peter-evans/create-or-update-comment@v2
51+
with:
52+
comment-id: ${{ steps.fc.outputs.comment-id }}
53+
issue-number: ${{ steps.findPr.outputs.pr }}
54+
body-file: nexmark_comment.txt
55+
edit-mode: replace
56+
env:
57+
CI_MACHINE_TYPE: "skylake-2x"

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666

6767
- name: Restore cache
6868
uses: Swatinem/rust-cache@v1
69+
# Don't cache on Windows due to low disk space
70+
if: runner.os != 'Windows'
6971

7072
# We split building the tests into a separate step
7173
# so that we can easily distinguish between build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ lcov.info
2727

2828
benches/galen_data/
2929
benches/ldbc-graphalytics-data/
30+
nexmark_results.csv
31+
nexmark_comment.txt

0 commit comments

Comments
 (0)