package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
AddStats adds a new unnamed Stats instance to the current benchmark.
AddStatsWithName adds a new named Stats instance to the current benchmark.
NewHistogram returns a pointer to a new Histogram object that was created with the provided options.
NewStats creates a new Stats instance.
PartialPrintString can print certain features with different format.
RunTestMain runs the tests with enabling injection of benchmark stats.
# Structs
BenchResults records features and result of a benchmark.
Features contains most fields for a benchmark.
Histogram accumulates values in the form of a histogram with exponentially increased bucket sizes.
HistogramBucket represents one histogram bucket.
HistogramOptions contains the parameters that define the histogram's buckets.
Stats is a simple helper for gathering additional statistics like histogram during benchmarks.