Skip to content

Commit

Permalink
add vm bench
Browse files Browse the repository at this point in the history
  • Loading branch information
loloicci committed Apr 17, 2024
1 parent 920e261 commit 21628eb
Show file tree
Hide file tree
Showing 19 changed files with 2,531 additions and 153 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: rustc --version; cargo --version; rustup --version; rustup target list --installed
- name: Run vm benchmarks (Singlepass)
working-directory: ${{env.working-directory}}/vm
run: cargo bench --no-default-features -- --color never --save-baseline singlepass
run: cargo bench --no-default-features --features="iterator" -- --color never --save-baseline singlepass
- name: Run crypto benchmarks
working-directory: ${{env.working-directory}}/crypto
run: cargo bench -- --color never --save-baseline crypto | tee ~/crypto-bench-result
Expand Down
139 changes: 20 additions & 119 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="devcontract_cache_voting_with_uuid",target=/code/contracts/voting-with-uuid/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.9 ./contracts/voting-with-uuid

docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="devcontract_cache_bench_sha1",target=/code/contracts/bench-sha1/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.9 ./contracts/bench_sha1
```

## Entry points
Expand All @@ -85,3 +90,4 @@ points in order to demonstrate and test the flexibility we have.
| reflect | yes | no |
| staking | yes | no |
| voting-with-uuid | yes | no |
| bench_sha1 | no | no |
6 changes: 6 additions & 0 deletions contracts/bench-sha1/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
Loading

0 comments on commit 21628eb

Please sign in to comment.