-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (84 loc) · 2.86 KB
/
Copy pathcache-benchmark.yml
File metadata and controls
90 lines (84 loc) · 2.86 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Cache benchmark validation
on:
pull_request:
paths:
- .github/workflows/cache-benchmark.yml
- benchmarks/cache/**
- crates/**
- Cargo.*
push:
branches:
- main
paths:
- .github/workflows/cache-benchmark.yml
- benchmarks/cache/**
- crates/**
- Cargo.*
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
cache-benchmark-validation:
runs-on: ubuntu-latest
strategy:
matrix:
profile: [small, macro-heavy]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache Rust
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Generate ${{ matrix.profile }} workload
run: >
python3 benchmarks/cache/scripts/generate_workload.py
--output benchmarks/cache/workloads/${{ matrix.profile }}
--profile ${{ matrix.profile }}
--self-check
- name: Validate ${{ matrix.profile }} workload
run: >
python3 benchmarks/cache/scripts/validate_workload.py
benchmarks/cache/workloads/${{ matrix.profile }}
- name: Build dlin
run: cargo build -p dlin --locked
- name: Validate ${{ matrix.profile }} cache behavior
run: >
python3 benchmarks/cache/scripts/run_benchmarks.py
--workload benchmarks/cache/workloads/${{ matrix.profile }}
--binary target/debug/dlin
--results-dir benchmarks/cache/results/ci/${{ matrix.profile }}
--summary-file "$GITHUB_STEP_SUMMARY"
--skip-timing
runtime-profile-semantic-validation:
runs-on: ubuntu-latest
strategy:
matrix:
profile:
- runtime-local-macro-heavy
- runtime-local-macro-dense
- runtime-prefix-macro-heavy
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache Rust
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Generate ${{ matrix.profile }} workload
run: >
python3 benchmarks/cache/scripts/generate_workload.py
--output benchmarks/cache/workloads/${{ matrix.profile }}
--profile ${{ matrix.profile }}
--self-check
- name: Validate ${{ matrix.profile }} structure
run: >
python3 benchmarks/cache/scripts/validate_workload.py
benchmarks/cache/workloads/${{ matrix.profile }}
- name: Build dlin
run: cargo build -p dlin --locked
- name: Validate ${{ matrix.profile }} semantics
run: >
python3 benchmarks/cache/scripts/validate_workload.py
--binary target/debug/dlin
benchmarks/cache/workloads/${{ matrix.profile }}