strategy

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Package strategy provides benchmark strategy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBulkInsert

func NewBulkInsert(opts ...StrategyOption) benchmark.Strategy

func NewBulkInsertCommit

func NewBulkInsertCommit(poolSize uint32, opts ...StrategyOption) benchmark.Strategy

func NewGetVector

func NewGetVector(opts ...StrategyOption) benchmark.Strategy

func NewInsert

func NewInsert(opts ...StrategyOption) benchmark.Strategy

func NewInsertCommit

func NewInsertCommit(poolSize uint32, opts ...StrategyOption) benchmark.Strategy

func NewRemove

func NewRemove(opts ...StrategyOption) benchmark.Strategy

func NewSearch

func NewSearch(size int, epsilon, radius float32, opts ...StrategyOption) benchmark.Strategy

Types

type StrategyOption

type StrategyOption func(*strategy) error

func WithBit32 added in v1.0.0

func WithBit64 added in v1.0.0

func WithParallel

func WithParallel() StrategyOption

func WithPreProp32

func WithPreProp32(
	fn func(context.Context, *testing.B, algorithm.Bit32, assets.Dataset) ([]uint, error),
) StrategyOption

func WithPreProp64

func WithPreProp64(
	fn func(context.Context, *testing.B, algorithm.Bit64, assets.Dataset) ([]uint, error),
) StrategyOption

func WithProp32

func WithProp32(
	fn func(context.Context, *testing.B, algorithm.Bit32, assets.Dataset, []uint, *uint64) (interface{}, error),
) StrategyOption

func WithProp64

func WithProp64(
	fn func(context.Context, *testing.B, algorithm.Bit64, assets.Dataset, []uint, *uint64) (interface{}, error),
) StrategyOption

func WithPropName

func WithPropName(str string) StrategyOption

Jump to

Keyboard shortcuts

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