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

Define a metric to track ZK ASM cycles used for WASM opcodes #137

Open
aborg-dev opened this issue Dec 1, 2023 · 0 comments
Open

Define a metric to track ZK ASM cycles used for WASM opcodes #137

aborg-dev opened this issue Dec 1, 2023 · 0 comments

Comments

@aborg-dev
Copy link

As a part of work in Stage 2 it would be useful to identify performance metrics that we should aim to improve.
One such metric might be a number of ZK ASM cycles that each WASM opcode uses.
We currently have a crude way to measure it by taking the total number of cycles spent in the spec test for a specific opcode and dividing it by the number of tests.

This metric has a few deficiencies:

  • It includes a constant overhead for creating ZK ASM program
  • The number of cycles might vary based on the input to the instruction (e.g. due to optimizations with immediate values)

We need to address these efficiencies and start tracking this metric continuously.

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