This repository contains a set of benchmarks for the ffjavascript
(wasmcurves
) and Arkworks. We are comparing
multi-exponentiation on the BLS12-381 curve.
First, build WASM dependencies with:
bash scripts/build.bash
You may run tests with:
bash scripts/test.bash
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
See ./benchmark-results
to find persisted benchmark results.
You can view tracing files (JSON files) using CPUPro