Versions in this module Expand all Collapse all v1 v1.0.2 Oct 26, 2020 v1.0.1 Nov 18, 2020 v1.0.0 Oct 26, 2020 v0 v0.0.3 Nov 18, 2020 v0.0.2 Nov 17, 2020 v0.0.1 Nov 16, 2020 Changes in this version + type BenchResults struct + Data RunData + Features Features + GoVersion string + GrpcVersion string + RunMode string + SharedFeatures []bool + type FeatureIndex int + const CompModesIndex + const EnableChannelzIndex + const EnablePreloaderIndex + const EnableTraceIndex + const MaxConcurrentCallsIndex + const MaxFeatureIndex + const ReadKbpsIndex + const ReadLatenciesIndex + const ReadMTUIndex + const ReqPayloadCurveIndex + const ReqSizeBytesIndex + const RespPayloadCurveIndex + const RespSizeBytesIndex + type Features struct + BenchTime time.Duration + EnableChannelz bool + EnableKeepalive bool + EnablePreloader bool + EnableTrace bool + Kbps int + Latency time.Duration + MTU int + MaxConcurrentCalls int + ModeCompressor string + NetworkMode string + ReqPayloadCurve *PayloadCurve + ReqSizeBytes int + RespPayloadCurve *PayloadCurve + RespSizeBytes int + UseBufConn bool + func (f Features) PrintableName(wantFeatures []bool) string + func (f Features) SharedFeatures(wantFeatures []bool) string + func (f Features) String() string + type Histogram struct + Buckets []HistogramBucket + Count int64 + Max int64 + Min int64 + Sum int64 + SumOfSquares int64 + func NewHistogram(opts HistogramOptions) *Histogram + func (h *Histogram) Add(value int64) error + func (h *Histogram) Clear() + func (h *Histogram) Merge(h2 *Histogram) + func (h *Histogram) Opts() HistogramOptions + func (h *Histogram) Print(w io.Writer) + func (h *Histogram) PrintWithUnit(w io.Writer, unit float64) + func (h *Histogram) String() string + type HistogramBucket struct + Count int64 + LowBound float64 + type HistogramOptions struct + BaseBucketSize float64 + GrowthFactor float64 + MinValue int64 + NumBuckets int + type PayloadCurve struct + Sha256 string + func NewPayloadCurve(file string) (*PayloadCurve, error) + func (pc *PayloadCurve) ChooseRandom() int + func (pc *PayloadCurve) Hash() string + func (pc *PayloadCurve) ShortHash() string + type RunData struct + AllocedBytes float64 + Allocs float64 + Average time.Duration + Fiftieth time.Duration + Ninetieth time.Duration + NinetyNinth time.Duration + RecvOps uint64 + ReqT float64 + RespT float64 + SendOps uint64 + TotalOps uint64 + type Stats struct + func NewStats(numBuckets int) *Stats + func (s *Stats) AddDuration(d time.Duration) + func (s *Stats) EndRun(count uint64) + func (s *Stats) EndUnconstrainedRun(req uint64, resp uint64) + func (s *Stats) GetResults() []BenchResults + func (s *Stats) StartRun(mode string, f Features, sf []bool)