Skip to content

Commit

Permalink
Benchmark fixes / follow-up (#62)
Browse files Browse the repository at this point in the history
Fix benchmarks in CI. Add `criterion` and run benchmarks through it
  • Loading branch information
maurolacy authored Feb 21, 2024
1 parent a1424e3 commit 331ccbf
Show file tree
Hide file tree
Showing 13 changed files with 421 additions and 120 deletions.
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,18 @@ jobs:
- image: cimg/rust:1.75.0
steps:
- checkout
- setup_remote_docker
- run:
name: Build optimised Wasm binary
command: |
./scripts/build-optimizer-ci.sh
- run:
name: Version information (default; stable)
command: rustc --version && cargo --version
- run:
name: Run babylon contract benchmarks
working_directory: ~/project/contracts/babylon
command: cargo bench
command: cargo bench --package babylon-contract -- --color never --save-baseline btc_light_client

push-to-s3:
machine:
Expand Down Expand Up @@ -178,7 +183,6 @@ workflows:
- main
- /^[0-9]+\.[0-9]+$/
# Add your branch here if benchmarking matters to your work
- f/benchmarks
- push-to-s3:
requires:
- wasm-build-check-integration
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ target/
*.iml
.cargo-ok
*.log
artifacts/checksums_intermediate.txt
artifacts/
Loading

0 comments on commit 331ccbf

Please sign in to comment.