Skip to content

Benchmarks multi-exponentiation performance in WASM across different libraries

Notifications You must be signed in to change notification settings

piotr-roslaniec/wasm-multiexp-bench

Repository files navigation

wasm-multiexp-bench

This repository contains a set of benchmarks for the ffjavascript (wasmcurves) and Arkworks. We are comparing multi-exponentiation on the BLS12-381 curve.

Usage

First, build WASM dependencies with:

bash scripts/build.bash

You may run tests with:

bash scripts/test.bash

Benchmarks

Compare performance of ffjavascript, ark-*@0.5.0 and ark-*@0.4.x crates by running:

bash scripts/benchmark.bash

Generate combined results file and plot results:

# pip install matplotlib
python scripts/plot-benchmark.py

Results

See ./benchmark-results to find persisted benchmark results.

You can view tracing files (JSON files) using CPUPro

Performance comparison

performance comparison

About

Benchmarks multi-exponentiation performance in WASM across different libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published