Skip to content

Commit

Permalink
configuring benchmark action
Browse files Browse the repository at this point in the history
  • Loading branch information
DavJCosby committed Dec 11, 2023
1 parent dff3be3 commit 90b76eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:

- name: Run benchmark
working-directory: ./sled
run: cargo bench map | tee output.txt
run: cargo bench map | tee output.txt; cat output.txt

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


4 changes: 4 additions & 0 deletions sled/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ toml = "0.8.0"
[dev-dependencies]
criterion = "0.5.1"

[profile.bench]
lto = true

[[example]]
name = "basic"
path = "examples/basic.rs"
Expand All @@ -24,3 +27,4 @@ doc-scrape-examples = true
[[bench]]
name = "my_benchmark"
harness = false

0 comments on commit 90b76eb

Please sign in to comment.