Versions in this module Expand all Collapse all v0 v0.7.0 Dec 4, 2025 Changes in this version + const ColorBlue + const ColorGreen + const ColorRed + const ColorReset + const ColorYellow + func Bits(defaults ...uint64) ([]uint64, error) + func Curves(curveIDs ...math.CurveID) []math.CurveID + func Duration() time.Duration + func Integers[T constraints.Integer](str string, defaults ...T) ([]T, error) + func NumInputs(defaults ...int) ([]int, error) + func NumOutputs(defaults ...int) ([]int, error) + func Workers(defaults ...int) ([]int, error) + type Bucket struct + Count int + HighBound time.Duration + LowBound time.Duration + type Case struct + Bits uint64 + CurveID math.CurveID + NumInputs int + NumOutputs int + Workers int + type Result struct + AllocsPerOp uint64 + AvgLatency time.Duration + BytesPerOp uint64 + CoeffVar float64 + Duration time.Duration + GoRoutines int + Histogram []Bucket + IQR time.Duration + Jitter time.Duration + MaxLatency time.Duration + MinLatency time.Duration + OpsPerSecPure float64 + OpsPerSecReal float64 + OpsTotal uint64 + P50Latency time.Duration + P75Latency time.Duration + P95Latency time.Duration + P99Latency time.Duration + StdDevLatency time.Duration + Variance float64 + func RunBenchmark[T any](workers int, benchDuration time.Duration, setup func() T, work func(T)) Result + func (r Result) Print() + type TestCase struct + BenchmarkCase *Case + Name string + func GenerateCases(bits []uint64, curves []math.CurveID, inputs []int, outputs []int, ...) []TestCase