Comments (4)
Initial benchmark
Out of date - Please see WASM and Python benchmarks below.
- No changes to existing TPKE benchmarks
- Running benchmarks in
wasi
rather than in the browser. Because of that, these results are not indicative of performance in the browser. - Raw results
- TLDR of the results: WASM is ~5x slower than Rust implementation
More detailed benchmarks are coming after proper WASM bindings are shipped #10Done
from ferveo.
WASM bindings benchmark
- Results available here
- WASM in the browser is 14x slower than Rust on desktop
- The worst-case scenario performance-wise is where we use 128 shares: Time to combine these shares is in the ballpark of a few seconds (2.2s in the benchmark)
- TLDR: Combining 128 shares takes up to ~2-3s in the browser
Relevant PR: #17
from ferveo.
Python bindings benchmark
- Results available here
- Notice: The code used in the benchmark doesn't perform public verification yet. See this question about "simple vs fast" decryption if it impacts how verification is performed. Edit: After some light reading of the Ferveo source code I concluded that it's not necessary to benchmark this verification.
- TLDR: Partial decryption of 128 shares takes up to 25 ms in Python
Relevant PR: #18
from ferveo.
Benchmarks are done. Please reopen should we need to update the benchmark suite.
from ferveo.
Related Issues (20)
- Get rid of g_inv and h_inv in the API HOT 2
- Decide on instructions for running Ferveo tests
- Replace deprecated `actions-rs/*` GH Actions
- Add header and payload to Ciphertext bindings HOT 7
- Derive `Eq` for `DkgPublicKey`
- Track domain points (aka "x coordinates") mapping to validators HOT 3
- Transcript epoch versioning HOT 1
- Protocol objects and methods for handling share updates between participants
- Design high-level protocols for refresh & recovery
- Rename group_threshold_cryptography crate to ferveo-tpke
- Delete references to ed25519
- Relax DKG ceremony constraints
- Expose `decrypt_private_key_share` to allow caching private key shares HOT 2
- Verifiability of Update Transcripts
- Add encryption to Update Transcripts HOT 2
- Aggregate transcript from a subset of participants HOT 2
- Expose `Ciphertext` methods in the Rust API
- Design protocol & related structures for onboarding and offboarding validators HOT 1
- Precomputed variant should work with a threshold number of shares and not need all of them HOT 2
- Share recovery failure at a random point when using new_decryption_share HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferveo.