bench

package
v0.0.0-...-5bffc4d Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mark

func Mark(conf *Config) error

Mark performs a benchmark test on the configured service

Types

type Config

type Config struct {
	AccessKey        string
	SecretKey        string
	Region           string
	Operation        string
	Clients          uint
	MultipartSize    int64
	ObjectSize       int64
	ObjectSplit      uint
	ObjectCount      uint
	ObjectNamePrefix string
	Bucket           string
	Endpoint         string
	Verbose          bool
	Write            bool
	Read             bool
	Cleanup          bool
}

Config holds the configuration paramters for the Runner type

type DiscardAt

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

func (*DiscardAt) WriteAt

func (w *DiscardAt) WriteAt(p []byte, off int64) (n int, err error)

type RepeatReader

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

func (*RepeatReader) Read

func (r *RepeatReader) Read(b []byte) (int, error)

func (*RepeatReader) Seek

func (r *RepeatReader) Seek(offset int64, whence int) (int64, error)

type Runner

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

A Runner performs benchmark tests by managing multiple goroutines

func (Runner) String

func (r Runner) String() string

Jump to

Keyboard shortcuts

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