ci: add benchmark task
This commit is contained in:
parent
209995b3d9
commit
c1c59d02fb
1 changed files with 24 additions and 0 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -78,3 +78,27 @@ jobs:
|
|||
run: |
|
||||
echo core | sudo tee /proc/sys/kernel/core_pattern
|
||||
make afl_quick
|
||||
bench:
|
||||
name: Benchmark
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Checkout repo"
|
||||
uses: actions/checkout@v3
|
||||
- name: "Setup toolchain"
|
||||
run: |
|
||||
rustup update stable
|
||||
rustup default stable
|
||||
sudo apt-get install valgrind
|
||||
- name: "Fetch benchmark inputs"
|
||||
run: make bench
|
||||
- name: "Benchmark"
|
||||
run: |
|
||||
cargo bench -p bench-crit all > crit
|
||||
cargo bench -p bench-iai > iai
|
||||
- name: "Artifact results"
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: benchmark
|
||||
path: |
|
||||
crit
|
||||
iai
|
||||
|
|
Loading…
Reference in a new issue