bench

package
v0.0.0-...-981b866 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

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

func NewBenchmark

func NewBenchmark(base uint64, threads uint64, tables uint64, batchSize uint64, dsn string) *Benchmark

func (*Benchmark) Run

func (b *Benchmark) Run(ctx context.Context)

type DB

type DB interface {
	CreateTables() error
	InsertBatch(base uint64, pace uint64, batchSize uint64) error
}

Jump to

Keyboard shortcuts

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