dragonfly

package
v0.0.0-...-7312e19 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputDir = "/tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dragonfly

type Dragonfly interface {
	// Run runs all benchmarks.
	Run(context.Context, string) error

	// RunByFileSizes runs benchmarks by file sizes.
	RunByFileSizes(context.Context, string, backend.FileSizeLevel) error

	// DownloadFileByDfget downloads file by dfget.
	DownloadFileByDfget(context.Context, backend.FileSizeLevel) error

	// DownloadFileByProxy downloads file by proxy.
	DownloadFileByProxy(context.Context, backend.FileSizeLevel) error

	// Cleanup cleans up the downloaded files.
	Cleanup(context.Context) error
}

Dragonfly represents a benchmark runner for Dragonfly.

func New

func New(namespace string, fileServer backend.FileServer, stats stats.Stats) Dragonfly

New creates a new benchmark runner for Dragonfly.

Jump to

Keyboard shortcuts

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