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

Compile Keccak benchmark from Rust #231

Closed
wants to merge 1 commit into from
Closed

Conversation

aborg-dev
Copy link

@aborg-dev aborg-dev commented Feb 23, 2024

This is the MVP that we built during the programming session. Let's see if CI likes it :)

UPD: I've tried to polish the approach based on build-artifacts but it was too inflexible - I wasn't able to fully customize build profile and flags used by the artifact. On top of that, it required using nightly Cargo which generated tons of warnings.

So I migrated the implementation to build.rs based on the approach taken by https://github.com/near/nearcore/tree/master/runtime/near-test-contracts. This worked like a charm and I think it's ready for a high-level review.

@aborg-dev aborg-dev marked this pull request as ready for review February 29, 2024 16:03
@aborg-dev aborg-dev changed the title Prototype benchmark artifacts Compile Keccak benchmark from Rust Feb 29, 2024
cranelift/codegen/src/isa/zkasm/inst/emit.rs Outdated Show resolved Hide resolved
cranelift/filetests/src/test_zkasm.rs Outdated Show resolved Hide resolved
cranelift/filetests/src/zkasm_codegen.rs Outdated Show resolved Hide resolved
@aborg-dev aborg-dev changed the base branch from main to start_to_main March 5, 2024 14:52
Base automatically changed from start_to_main to main March 5, 2024 17:18
I've tried to polish the approach based on build-artifacts but it was too inflexible - I wasn't able to fully customize build profile and flags used by the artifact. On top of that, it required using nightly Cargo which generated tons of warnings.

So I migrated the implementation to build.rs based on the approach taken by https://github.com/near/nearcore/tree/master/runtime/near-test-contracts. This worked like a charm and I think it's ready for a high-level review.

Based on artifact-dependencies to compile Rust to WASM during build.
@aborg-dev
Copy link
Author

I've resolved all comments, PTAL

@aborg-dev aborg-dev requested review from nagisa and mooori March 5, 2024 19:04
@aborg-dev
Copy link
Author

Closing this for now.

@aborg-dev aborg-dev closed this Apr 15, 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

Successfully merging this pull request may close these issues.

4 participants