forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 2.38 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Benchmark
on:
push:
branches:
- master
jobs:
benchmark:
name: benchmark
runs-on: benchmark
strategy:
fail-fast: false
matrix:
# commnad should looks like cargo bench -- -Z unstable-options --format=json
test:
- {
name: "solana-sdk",
command: "cargo +$rust_nightly bench -p solana-sdk -- -Z unstable-options --format=json",
}
- {
name: "solana-runtime",
command: "cargo +$rust_nightly bench -p solana-runtime -- -Z unstable-options --format=json",
}
- {
name: "solana-gossip",
command: "cargo +$rust_nightly bench -p solana-gossip -- -Z unstable-options --format=json",
}
- {
name: "solana-poh",
command: "cargo +$rust_nightly bench -p solana-poh -- -Z unstable-options --format=json",
}
- {
name: "solana-core",
command: "cargo +$rust_nightly bench -p solana-core -- -Z unstable-options --format=json",
}
- {
name: "solana-accounts-db",
command: "cargo +$rust_nightly bench -p solana-accounts-db -- -Z unstable-options --format=json",
}
- {
name: "sbf",
before_command: "make -C programs/sbf all",
command: "cargo +$rust_nightly bench --manifest-path programs/sbf/Cargo.toml --features=sbf_c -- -Z unstable-options --format=json",
}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Before Command
if: ${{ matrix.test.before_command != '' }}
run: |
${{ matrix.test.before_command }}
- name: Command
run: |
source ci/rust-version.sh nightly
${{ matrix.test.command }} | tee benchmark.json
- name: Upload Result
run: |
TEST_SUITE="${{ matrix.test.name }}" \
COMMIT_HASH="$(git rev-parse HEAD)" \
INFLUX_HOST="${{ secrets.BENCHMARK_INFLUX_HOST }}" \
INFLUX_DB="${{ secrets.BENCHMARK_INFLUX_DB }}" \
INFLUX_USER="${{ secrets.BENCHMARK_INFLUX_USER }}" \
INFLUX_PASSWORD="${{ secrets.BENCHMARK_INFLUX_PASSWORD }}" \
INFLUX_MEASUREMENT="${{ secrets.BENCHMARK_INFLUX_MEASUREMENT }}" \
./ci/upload-benchmark.sh benchmark.json