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

Add Fibonacci benchmark #128

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Add Fibonacci benchmark #128

merged 1 commit into from
Dec 1, 2023

Conversation

aborg-dev
Copy link

This includes two versions:

  • Generated from Rust program
  • Written by hand

The Rust-based one does not compile yet due to br_if not being supported on i32 values. I will implement it next.

There are a few TODOs that I will address with a follow-up PRs to keep this PR focused on one thing.

This is a part of #90

This includes two versions:
- Generated from Rust program
- Written by hand
@aborg-dev aborg-dev requested a review from MCJOHN974 December 1, 2023 10:45
@@ -0,0 +1,3 @@
Test,Status,Cycles
from_rust,compilation failed,
handwritten_wat,pass,190024

Choose a reason for hiding this comment

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

LGTM. Just interesting, what is ratio from cycles to seconds?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, that would be very interesting to know. I'll be working on figuring this out next.
We basically know that ZK ASM is ~10KHz machine, so now we also need to benchmark that Fibonacci code on normal processor and compute the ratio.

@aborg-dev aborg-dev added this pull request to the merge queue Dec 1, 2023
Merged via the queue into main with commit 9fe2545 Dec 1, 2023
21 checks passed
@aborg-dev aborg-dev deleted the fibo_bench branch December 1, 2023 12:03
@aborg-dev aborg-dev added this to the ZK WASM: Stage 1 milestone Dec 5, 2023
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.

2 participants