Documentation ¶
Index ¶
- func ListPeers(c client.Client)
- func LoadClusterInstances(filename string) map[string]*Node
- func NewFile(filename string)
- func Read(node, filename string) map[string]time.Duration
- func SaveState(filename string, instances map[string]*service.NodeInfo)
- func Test0(nodesN int)
- func Test1(nOps, nodesN int)
- func Test2(nOps, nodesN int)
- func Write(node, filename string) (string, map[string]time.Duration)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClusterInstances ¶
LoadClusterInstances load ipfs-cluster instances for each node
func Test0 ¶
func Test0(nodesN int)
Test0 perf test takes random nodes (non reproductible), output max and min time when performing an operation (write + read)
func Test1 ¶
func Test1(nOps, nodesN int)
Test1 try to load an existing sequence, if sequence does not match generate a new one. Performance tests, yield min and max operation time (write + read)
func Test2 ¶
func Test2(nOps, nodesN int)
Test2 measure nOps write + read operation between pairs of nodes among a set of nodesN nodes. It first tries to read the operation sequence (to reproduce) the same sequence as a previous experiment, if does not exist or invalid format, generate a new sequence
Types ¶
Click to show internal directories.
Click to hide internal directories.