benchmarks

package
v0.0.0-...-57c8b1d Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIENTDELTASIZE_TOTALLOGS = 100000
	CLIENTDELTASIZE_SAMPLES   = 25
)
View Source
const (
	CLIENTUPDATE_TOTALLOGS            = 10000000
	CLIENTUPDATE_UPDATESIZE_INCREMENT = 500000
	CLIENTUPDATE_SAMPLES              = 10
)
View Source
const (
	MICROBENCH_TOTALLOGS  = 10000000
	MICROBENCH_UPDATELOGS = 100000 // 1%
	MICROBENCH_NUMCLIENTS = 100
	MICROBENCH_RUNS       = 10
)
View Source
const (
	PROOFSIZE_TOTALLOGS   = 10000000
	PROOFSIZE_INCREMENTS  = 100000
	PROOFSIZE_SAMPLELIMIT = 1000
)
View Source
const (
	PROOFSIZEPERLOG_TOTALLOGS   = 10000000
	PROOFSIZEPERLOG_INCREMENTS  = 100
	PROOFSIZEPERLOG_MAXLOGCOUNT = 10000
	PROOFSIZEPERLOG_SAMPLELIMIT = 10
)

Variables

This section is empty.

Functions

func BenchmarkProxy

func BenchmarkProxy(conn net.Conn, srv *server.Server)

func BenchmarkProxyClient

func BenchmarkProxyClient(conn net.Conn) net.Conn

func RunClientBench

func RunClientBench(host string, port, numClients, numLogs, numStatements int)

func RunClientDeltaSizeBench

func RunClientDeltaSizeBench()

RunClientDeltaSizeBench will create 1M logs and then measure the size of a proof update (Delta) for a client maintaining a single log that does not change

func RunClientUpdateBench

func RunClientUpdateBench()

func RunMicroBench

func RunMicroBench()

func RunProofSizeBench

func RunProofSizeBench()

runProofSizeBench will add 10k logs each run, and report the average proof size for 1, 10, 100, 1000 logs

func RunProofSizePerLogBench

func RunProofSizePerLogBench()

RunProofSizePerLogBench will add 10M logs and report the average proof size per log for tracking PROOFSIZEPERLOG_INCREMENTS up to PROOFSIZEPERLOG_MAXLOGCOUNT logs in total (in steps of PROOFSIZEPERLOG_INCREMENTS)

func RunServerBench

func RunServerBench(port int)

Types

type TestClient

type TestClient struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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