Documentation
¶
Overview ¶
Package benchsuite provides standardized protocol performance benchmarking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatResults ¶
func FormatResults(results []*BenchResult) string
FormatResults formats benchmark results as a table.
Types ¶
type BenchResult ¶
type BenchResult struct {
Protocol string `json:"protocol"`
Operation string `json:"operation"` // "encode", "decode"
Iterations int `json:"iterations"`
TotalTime time.Duration `json:"total_time"`
OpsPerSec float64 `json:"ops_per_sec"`
NsPerOp int64 `json:"ns_per_op"`
BytesPerOp int64 `json:"bytes_per_op"`
AllocsPerOp int64 `json:"allocs_per_op"`
}
BenchResult holds the result of a single benchmark.
type Suite ¶
type Suite struct {
// contains filtered or unexported fields
}
Suite runs protocol benchmarks.
Click to show internal directories.
Click to hide internal directories.