piotr-roslaniec/wasm-multiexp-bench

Benchmarks multi-exponentiation performance in WASM across different libraries

★ 1Forks 0WebAssemblyGitHub ↗Compare

README

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

Contributors

piotr-roslaniec

Issues