Skip to content

Submit benchmarks written in Rust to the codebase #228

@aborg-dev

Description

@aborg-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions