benchmark

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Name() string
	Next() string
}

func NewHotspot

func NewHotspot(max int) Generator

nolint:gosec

func NewScrambledZipfian

func NewScrambledZipfian(max int) Generator

nolint:gosec

func NewUniform

func NewUniform(max int) Generator

nolint:gosec

type Hotspot

type Hotspot struct {
	// contains filtered or unexported fields
}

func (*Hotspot) Name

func (g *Hotspot) Name() string

func (*Hotspot) Next

func (g *Hotspot) Next() string

type NewGeneratorFunc

type NewGeneratorFunc = func(int) Generator

type ScrambledZipfian

type ScrambledZipfian struct {
	// contains filtered or unexported fields
}

func (*ScrambledZipfian) Name

func (g *ScrambledZipfian) Name() string

func (*ScrambledZipfian) Next

func (g *ScrambledZipfian) Next() string

type Uniform

type Uniform struct {
	// contains filtered or unexported fields
}

func (*Uniform) Name

func (g *Uniform) Name() string

func (*Uniform) Next

func (g *Uniform) Next() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL