Skip to content

XCVM-258: Add missing benchmarks to pallet-cosmwasm#2763

Merged
mergify[bot] merged 4 commits intomainfrom
aeryz/new/XCVM-258
Dec 21, 2022
Merged

XCVM-258: Add missing benchmarks to pallet-cosmwasm#2763
mergify[bot] merged 4 commits intomainfrom
aeryz/new/XCVM-258

Conversation

@aeryz
Copy link
Contributor

@aeryz aeryz commented Dec 20, 2022

  • Added i64sub, continue_reply and CallIndirect benchmarks.
  • Small fixes.
  • Added gas metering for the newly added benchmarks.

Signed-off-by: aeryz <abdullaheryz@protonmail.com>
Signed-off-by: aeryz <abdullaheryz@protonmail.com>
Signed-off-by: aeryz <abdullaheryz@protonmail.com>
@aeryz aeryz requested review from a team December 20, 2022 15:01
@aeryz aeryz requested a review from a team as a code owner December 20, 2022 15:01
@KaiserKarel
Copy link
Contributor

Task linked: XCVM-258 Complete benchmarks

@github-actions
Copy link

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/cb0a7e01cac16e4f3fc84cfbbbb71eae22c318e8 --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/cb0a7e01cac16e4f3fc84cfbbbb71eae22c318e8#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/cb0a7e01cac16e4f3fc84cfbbbb71eae22c318e8#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/cb0a7e01cac16e4f3fc84cfbbbb71eae22c318e8#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/cb0a7e01cac16e4f3fc84cfbbbb71eae22c318e8#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package
For more info on how to use Nix, check out our Nix docs
Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

@github-actions
Copy link

github-actions bot commented Dec 20, 2022

Visit the preview URL for this PR (updated for commit e3d78c8):

https://composable-docs--false-bvmz1swb.web.app

(expires Tue, 27 Dec 2022 15:10:03 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9f02f9c6590528fd01c58c1497c91fed08e5194c

@github-actions
Copy link

github-actions bot commented Dec 20, 2022

@github-actions
Copy link

github-actions bot commented Dec 20, 2022

Signed-off-by: aeryz <abdullaheryz@protonmail.com>
@aeryz aeryz force-pushed the aeryz/new/XCVM-258 branch from cb0a7e0 to e3d78c8 Compare December 20, 2022 15:07
@github-actions
Copy link

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/e3d78c890fcaa30479154d755d969101c1d0d37d --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/e3d78c890fcaa30479154d755d969101c1d0d37d#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/e3d78c890fcaa30479154d755d969101c1d0d37d#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/e3d78c890fcaa30479154d755d969101c1d0d37d#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/e3d78c890fcaa30479154d755d969101c1d0d37d#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package
For more info on how to use Nix, check out our Nix docs
Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

Copy link
Contributor

@hussein-aitlahcen hussein-aitlahcen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done sir!

@mergify mergify bot merged commit f1a038d into main Dec 21, 2022
@KaiserKarel KaiserKarel deleted the aeryz/new/XCVM-258 branch February 7, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants