# README
Benchmarks
This directory contains benchmarks, and a Makefile to run the benchmarks.
crypto-ubench
This target runs a set of microbenchmarks for the Go cryptographic primitives used by the Hyperledger fabric. Simply execute
make crypto-ubench
to run the microbenchmarks. You can define TIMES
on the make command line to
define how many times each run is made. The default is 1 run; If TIMES
> 1
then the results are averaged. Define ENV
to define an environment or
wrapper-command. For example
make crypto-ubench ENV=time TIMES=3
runs each benchmark 3 times and also reports the elapsed time.
# Functions
P256Sign returns the number of signs per second.
P256Verify returns the number of verifys per second.
P384Sign returns the number of signs per second.
P384Verify returns the number of verifys per second.
SHA256x1K benchmarks SHA256 on 1024-byte buffers.
SHA256x8 benchmarks SHA256 on 8-byte buffers.
SHA256x8K benchmarks SHA256 on 8192-byte buffers.
SHA3_256x1K benchmarks SHA3_256 on 1024-byte buffers.
SHA3_256x8 benchmarks SHA3_256 on 8-byte buffers.
SHA3_256x8K benchmarks SHA3_256 on 8192-byte buffers.
SHA3_512x1K benchmarks SHA3_512 on 1024-byte buffers.
SHA3_512x8 benchmarks SHA3_512 on 8-byte buffers.
SHA3_512x8K benchmarks SHA3_512 on 8192-byte buffers.
SHA512x1K benchmarks SHA512 on 1024-byte buffers.
SHA512x8 benchmarks SHA512 on 8-byte buffers.
SHA512x8K benchmarks SHA512 on 8192-byte buffers.