lazycache_benchmarking

package module
v0.0.0-...-53f6ae9 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2017 License: MIT Imports: 10 Imported by: 1

README

go-lazycache-benchmarking

GoDoc

Contains modules and command line tools for bench- and stress-testing go-lazycache

Currently contains two command-line tools:

random_walk

Performs a parallelized random walk through the directory tree of a lazycache server.

frame_stress

Performs parallelized download of random frames from one or more Quicktime/Prores files on a lazycache server.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStressFlags

func AddStressFlags(set *flag.FlagSet) *flag.FlagSet

func DownloadWorker

func DownloadWorker(urls chan string, results chan []byte, wg *sync.WaitGroup)

func FrameStress

func FrameStress(opts StressOptions) error

func RandomWalk

func RandomWalk(opts StressOptions, baseurl string) error

func RandomWalkQuery

func RandomWalkQuery(urls chan string, out chan string, baseurl string)

func RepeatedDownload

func RepeatedDownload(settings *StressOptions,
	producer UrlProducer) error

Types

type StressOptions

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

func NewSettings

func NewSettings() *StressOptions

func (*StressOptions) ApplyFlags

func (opt *StressOptions) ApplyFlags(set *flag.FlagSet)

func (StressOptions) Count

func (opt StressOptions) Count() int

func (StressOptions) Parallelism

func (opt StressOptions) Parallelism() int

func (*StressOptions) SetCount

func (opt *StressOptions) SetCount(i int)

func (*StressOptions) SetParallelism

func (opt *StressOptions) SetParallelism(i int)

type StressSettings

type StressSettings interface {
	Count() int

	Parallelism() int
	// contains filtered or unexported methods
}

type UrlProducer

type UrlProducer interface {
	Url(i int) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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