Skip to content

Commit

Permalink
feat(bench): Criterion benchmarking + Flamegraph (#47)
Browse files Browse the repository at this point in the history
* add bench contracts

* adjust Cargo.toml for benching

* add parse bench file

* add basic parse example & flamegraph

* adjust Cargo.toml for parse example

* benches README

* gh ci action for bench

---------

Co-authored-by: brockelmore <[email protected]>
  • Loading branch information
plotchy and brockelmore authored Jun 2, 2023
1 parent eabadc8 commit ed07912
Show file tree
Hide file tree
Showing 9 changed files with 6,927 additions and 20 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ jobs:
run: cargo test --all
- name: Lint with fmt
run: cargo fmt --all --check
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --all --release
- name: Run benches
run: cargo bench
Loading

0 comments on commit ed07912

Please sign in to comment.