Skip to content

Commit

Permalink
Trying running banchmarks on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
bazhenov committed Nov 29, 2023
1 parent 204ae03 commit 90bc7f5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Benchmarks

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Install Rust
run: rustup update stable && rustup default stable
- name: Install Cargo Export
run: cargo install cargo-export

- name: Restore ./target
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: Cargo/${{ runner.os }}

- name: Run Tango Benchmarks
run: ./scripts/tango.sh

- name: Run Criterion Benchmarks
run: ./scripts/criterion.sh

- name: Archive Benchmarks Results
uses: actions/upload-artifact@v3
with:
name: benchmarks.zip
path: |
target/tango.txt
target/criterion.txt
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ Cargo.lock
**/*.rs.bk
*.svg
/graphs
/.*
/rust-toolchain.toml
/*.csv
.ipynb_checkpoints
/local
/.fleet
/.vscode
/.ttr.yaml

0 comments on commit 90bc7f5

Please sign in to comment.