Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit benchmarks written in Rust to the codebase #228

Open
aborg-dev opened this issue Feb 22, 2024 · 1 comment
Open

Submit benchmarks written in Rust to the codebase #228

aborg-dev opened this issue Feb 22, 2024 · 1 comment

Comments

@aborg-dev
Copy link

aborg-dev commented Feb 22, 2024

This is a followup for #90

Ideally, we would have all Rust benchmarks submitted to wasmtime repository and compiled to WASM as a part of the build process to avoid storing massive WASM binary blobs in Git. This will also make it much easier to experiment with different Rust compilation flags when we try to optimize the resulting zkAsm.

A rough flow will be:

  1. We submit a benchmark like https://gist.github.com/akashin/a02b4b72883674072e09b226904f2b5e to wasmtime
  2. We introduce a build.rs script that builds it to wasm32 target and stores it in generated directory
  3. We pick up the generated WASM file in the test_zkasm.rs and generate zkAsm out of it
  4. We run that zkAsm with zkasm_runner.rs
@aborg-dev aborg-dev changed the title Submit benchmarks written in Rust to the codebase (followup for https://github.com/near/wasmtime/issues/90) Submit benchmarks written in Rust to the codebase Feb 22, 2024
@aborg-dev aborg-dev added this to the ZK WASM: Stage 2 milestone Feb 22, 2024
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

No branches or pull requests

1 participant