Skip to content

Commit

Permalink
trying different tool
Browse files Browse the repository at this point in the history
  • Loading branch information
DavJCosby committed Dec 11, 2023
1 parent db3b37b commit 584849c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run Benchmarks
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

name: Run benchmarks
jobs:
runBenchmark:
name: run benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: boa-dev/criterion-compare-action@v3
with:
cwd: "./sled"
# Needed. The name of the branch to compare with. This default uses the branch which is being pulled against
branchName: ${{ github.base_ref }}
22 changes: 6 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Build and Run Tests

on:
push:
Expand All @@ -17,22 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v3

# - name: Build
# working-directory: ./sled
# run: cargo build
- name: Build
working-directory: ./sled
run: cargo build

# - name: Run tests
# working-directory: ./sled
# run: cargo test

- name: Run benchmark
- name: Run tests
working-directory: ./sled
run: cargo bench map | tee output.txt;echo "outputting file here:"; cat output.txt

- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'cargo'
output-file-path: sled/output.txt
run: cargo test


0 comments on commit 584849c

Please sign in to comment.