Documentation
¶
Index ¶
- Constants
- func GetFreePorts(t *testing.T, n int) []int
- func GuardP2PBenchTest(t *testing.T)
- func LogBytesThroughputStats(t *testing.T, title string, bytes uint64, duration time.Duration) float64
- func LogDurationStats(t *testing.T, title string, durations []time.Duration) map[string]any
- func LogPerformanceStatsBroadcast(t *testing.T, start time.Time, sentMessages int, ...) map[string]any
- func LogPerformanceStatsSend(t *testing.T, start time.Time, sendSuccess, sendFailed, receivedSuccess uint64, ...) map[string]any
- func PrintMatrixOnly() bool
- func WaitForProcessing(t *testing.T, ctx context.Context, name string, ...) (completed bool)
- type PerfRecord
Constants ¶
View Source
const EnvP2PBench = "P2P_BENCH_TEST"
Variables ¶
This section is empty.
Functions ¶
func GuardP2PBenchTest ¶
func LogBytesThroughputStats ¶ added in v0.39.1
func LogDurationStats ¶
func LogPerformanceStatsBroadcast ¶ added in v0.39.1
func LogPerformanceStatsSend ¶ added in v0.39.1
func PrintMatrixOnly ¶ added in v0.39.1
func PrintMatrixOnly() bool
Types ¶
type PerfRecord ¶ added in v0.39.1
type PerfRecord struct {
Payload []byte
SentAt time.Time
ReceivedAt time.Time
ProcessedAt time.Time
}
PerfRecord dummy payload just to measure various performance metrics in benchmarks.
func (*PerfRecord) AsEcho ¶ added in v0.39.1
func (r *PerfRecord) AsEcho() *types.RequestEcho
message: [sent_at | payload]
func (*PerfRecord) FromEcho ¶ added in v0.39.1
func (r *PerfRecord) FromEcho(echo *types.RequestEcho) error
Click to show internal directories.
Click to hide internal directories.