gnark-bench

command module
v0.0.0-...-2dda93f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

gnark-bench

Command line tool to benchmark and profile execution of plonk and groth16 zkSNARKs with gnark.

If running benchmarks on a amd64 machine with adx instructions, be sure to build gnark-bench with -tags=amd64_adx.

Usage

go build [-tags=amd64_adx]

./gnark-bench will output self explanatory help:

runs benchmarks and profiles using gnark

Usage:
  gnark-bench [command]

Available Commands:
  completion  generate the autocompletion script for the specified shell
  groth16     runs benchmarks and profiles using Groth16 proof system
  help        Help about any command
  plonk       runs benchmarks and profiles using PlonK proof system

Flags:
      --algo string      name of the algorithm to benchmark. must be compile, setup, prove or verify (default "prove")
      --circuit string   name of the circuit to use (default "expo")
      --count int        bench count (time is averaged on number of executions) (default 2)
      --curve string     curve name. must be [bn254 bls12_377 bls12_381 bw6_761 bls24_315 bw6_633] (default "bn254")
  -h, --help             help for gnark-bench
      --profile string   type of profile. must be none, trace, cpu or mem (default "none")
      --size int         size of the circuit, parameter to circuit constructor (default 10000)

Notes

  • It is possible to benchmark a specific circuit, need to fork and extend circuit subpackage with a struct that implements BenchCircuit and register it in the global map.

Documentation

Overview

Copyright © 2021 ConsenSys Software Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL