privacy-scaling-explorations / zk-kit

A monorepo of reusable libraries for zero-knowledge technologies.
https://zkkit.pse.dev
MIT License
290 stars 76 forks source link

Compare performance of IMT written in JS and Rust in Node.js and browser #306

Open vplasencia opened 4 months ago

vplasencia commented 4 months ago

Description

There is an implementation of the IMT data structure in TS/JS: https://github.com/privacy-scaling-explorations/zk-kit/tree/main/packages/imt

There is also an implementation of the IMT data structure in Rust: https://github.com/privacy-scaling-explorations/zk-kit.rust/tree/main/crates/imt

The idea of this issue is to compare the performance of IMT written in TS/JS and Rust in Node.js and browser.

Resources

Guide to convert the Rust implementation to wasm: https://rustwasm.github.io/docs/book/

Library to create benchmarks in Node.js and browser: https://github.com/tinylibs/tinybench

sebagiraudo commented 2 months ago

Hi! I would like to work on this issue

vplasencia commented 2 months ago

Hey @sebagiraudo 👋

Thanks. I just assigned the issue to you. Feel free to ask any questions you may have.

sebagiraudo commented 2 months ago

Hello! I made some progress in this repository.

The results I got are in this website.

I'm open to any kind of feedback 😀