Documentation ¶
Index ¶
- Constants
- func BenchmarkProxy(conn net.Conn, srv *server.Server)
- func BenchmarkProxyClient(conn net.Conn) net.Conn
- func RunClientBench(host string, port, numClients, numLogs, numStatements int)
- func RunClientDeltaSizeBench()
- func RunClientUpdateBench()
- func RunMicroBench()
- func RunProofSizeBench()
- func RunProofSizePerLogBench()
- func RunServerBench(port int)
- type TestClient
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 RunClientBench ¶
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
}
Click to show internal directories.
Click to hide internal directories.