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

refactor(optimisedmt): remove dependency and implement locally #1031

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

ctrlc03
Copy link
Collaborator

@ctrlc03 ctrlc03 commented Jan 16, 2024

Description

  • Remove optimised dependency and implement locally
  • Add a dev package to run benchmarks.
Optimisedmt - Insert, Update and Gen and verify proof for 25 leaves:
    13.7 ops/s, ±2.79%   | slowest, 2.84% slower
MACI - gen and verify proof for 25 leaves:
    14.1 ops/s, ±1.28%   | fastest
  • run benchmarks
  • add workflow to run benchmarks on ci

Confirmation

@ctrlc03 ctrlc03 self-assigned this Jan 16, 2024
Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for maci-typedoc ready!

Name Link
🔨 Latest commit c7d81e2
🔍 Latest deploy log https://app.netlify.com/sites/maci-typedoc/deploys/65a8209ea60435000876660c
😎 Deploy Preview https://deploy-preview-1031--maci-typedoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@ctrlc03 thanks, just left some comments

crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/__tests__/IMT.test.ts Show resolved Hide resolved
@ctrlc03 ctrlc03 marked this pull request as ready for review January 17, 2024 16:02
benchmarks/.gitignore Outdated Show resolved Hide resolved
benchmarks/package.json Outdated Show resolved Hide resolved
benchmarks/ts/src/optimisedmt.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
benchmarks/ts/suites/trees.ts Outdated Show resolved Hide resolved
benchmarks/ts/suites/core.ts Outdated Show resolved Hide resolved
benchmarks/ts/suites/trees.ts Outdated Show resolved Hide resolved
benchmarks/ts/suites/constants.ts Outdated Show resolved Hide resolved
benchmarks/ts/src/optimisedmt.ts Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 force-pushed the deps/optimisedmt branch 2 times, most recently from 1676fe4 to 21368ab Compare January 17, 2024 16:48
package.json Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 force-pushed the deps/optimisedmt branch 2 times, most recently from 9ee55bd to 198fef7 Compare January 17, 2024 17:24
core/ts/__tests__/benchmarks/results/maci-core.chart.html Outdated Show resolved Hide resolved
core/ts/__tests__/benchmarks/index.ts Outdated Show resolved Hide resolved
core/ts/__tests__/benchmarks/index.ts Outdated Show resolved Hide resolved
core/ts/__tests__/benchmarks/results/maci-core.chart.html Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 requested a review from 0xmad January 17, 2024 17:38
.eslintignore Outdated Show resolved Hide resolved
core/package.json Outdated Show resolved Hide resolved
crypto/package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@ctrlc03 thanks!

@ctrlc03
Copy link
Collaborator Author

ctrlc03 commented Jan 17, 2024

@ctrlc03 thanks!

thanks for the review!

crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 requested a review from kittybest January 17, 2024 18:07
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Outdated Show resolved Hide resolved
crypto/ts/quinTree.ts Show resolved Hide resolved
@ctrlc03 ctrlc03 force-pushed the deps/optimisedmt branch 2 times, most recently from 6628790 to 76fe384 Compare January 17, 2024 18:40
core/ts/__benchmarks__/index.ts Outdated Show resolved Hide resolved
crypto/ts/__benchmarks__/suites/trees.ts Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 requested a review from kittybest January 17, 2024 18:51
@ctrlc03 ctrlc03 merged commit 45896ab into dev Jan 17, 2024
17 checks passed
@ctrlc03 ctrlc03 deleted the deps/optimisedmt branch January 17, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants