stats

package
v0.0.0-...-f2127f7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastExperimentNumber

func GetLastExperimentNumber(databaseFile string) int

GetLastExperimentNumber return the ID of last experiment stored in database

func StoreClientInformation

func StoreClientInformation(hostname string, clientID int, consensus int, gomaxprocs int, fkExperiment int64, databaseFile string, conflicts int, writes int, testDuration time.Duration, successful int64, throughput int64, latencyAvg float64) (int64, error)

StoreClientInformation stores the results of information of the test

func StoreClientLatency

func StoreClientLatency(databaseFile string, fkClient int64, latency []int64, fkExperiment int64) error

StoreClientLatency stores the latency of information of each client

func StoreExperimentInformation

func StoreExperimentInformation(databaseFile string, fkProtocol int, thrifty bool, beacon bool, execute bool, executeThreads int, replyAfterExecute bool, populate int64, gomaxprocsReplicas int, gomaxprocsClients int, batchWait int) (int64, error)

StoreExperimentInformation stores the initial information of the test

func StoreReplicaInformation

func StoreReplicaInformation(databaseFile string, hostname string, experiment int64) error

StoreReplicaInformation is used by replicas to store their param

func UpdateExperimentLatency

func UpdateExperimentLatency(databaseFile string, fkExperiment int64, mean float64, median float64, percentile5 float64, percentile25 float64, percentile50 float64, percentile75 float64, percentile90 float64, percentile95 float64, percentile99 float64) error

UpdateExperimentLatency is used by clients to store the results in database

Types

This section is empty.

Jump to

Keyboard shortcuts

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