|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include "barretenberg/common/log.hpp"#include "barretenberg/common/thread.hpp"#include "barretenberg/ecc/curves/bn254/bn254.hpp"#include "barretenberg/ecc/groups/element.hpp"#include "barretenberg/ecc/scalar_multiplication/scalar_multiplication.hpp"#include "barretenberg/numeric/random/engine.hpp"#include "barretenberg/srs/global_crs.hpp"#include <algorithm>#include <chrono>#include <cstddef>#include <cstdio>#include <span>#include <string>#include <vector>Go to the source code of this file.
Typedefs | |
| using | Curve = bb::curve::BN254 |
| Small-MSM crossover matrix benchmark. | |
| using | Fr = Curve::ScalarField |
| using | G1 = Curve::AffineElement |
| using | Element = Curve::Element |
Functions | |
| int | main () |
| using Curve = bb::curve::BN254 |
Small-MSM crossover matrix benchmark.
Outputs a single matrix where rows = method and columns = N (number of points). Methods compared:
Two outputs are reported per (method, N):
Build & run: cd barretenberg/cpp/build && ninja small_msm_matrix_bench ./bin/small_msm_matrix_bench
Definition at line 37 of file small_msm_matrix.bench.cpp.
| using Element = Curve::Element |
Definition at line 40 of file small_msm_matrix.bench.cpp.
| using Fr = Curve::ScalarField |
Definition at line 38 of file small_msm_matrix.bench.cpp.
| using G1 = Curve::AffineElement |
Definition at line 39 of file small_msm_matrix.bench.cpp.
| int main | ( | ) |
Definition at line 289 of file small_msm_matrix.bench.cpp.