ioperf

package
v0.0.1-prerelease Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DATA []byte
View Source
var DEBUG bool = false

Global information.

View Source
var STARTTIME time.Time

Functions

func DoTest

func DoTest(config Config)

Types

type ByteCounter

type ByteCounter int64

Implement a WriterAt interface that counts bytes written to it.

func (*ByteCounter) WriteAt

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

type Config

type Config struct {
	FileType    string // "disk" or "s3"
	Operation   string // "read" or "write"
	Iterations  int    // Number of operations to run
	Threads     int    // Number of threads to run
	DirPath     string // Containing directory path (prefix for S3)
	Bucket      string // Bucket for S3 operations
	Files       int    // Number of files to write/read
	FileSizeMiB int64  // File length in MiB (write)
	Sync        bool   // If true fsync after operation (write)
	Debug       bool   // Log extra information if true
	CsvData     bool   // Print results as CVS if true
}

IO Perf configuration

type Result

type Result struct {
	Operation  string
	WorkerId   int
	Path       string
	Succeeded  bool
	Bytes      int64
	SinceStart float64
	Duration   float64
}

Jump to

Keyboard shortcuts

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