perf

package
v0.1.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var METRICS_NAMESPACE = "ffperf"
View Source
var METRICS_SUBSYSTEM = "runner"
View Source
var TRANSPORT_TYPE = "websockets"

Functions

func Init

func Init()

Types

type PaginatedResponse

type PaginatedResponse struct {
	Total int `ffstruct:"PaginatedResponse" json:"total,omitempty"`
}

type PerfRunner

type PerfRunner interface {
	Init() error
	Start() error
}

func New

func New(config *conf.RunnerConfig) PerfRunner

type SubscriptionInfo

type SubscriptionInfo struct {
	NodeURL string
	Name    string
	Job     fftypes.FFEnum
}

type TestCase

type TestCase interface {
	WorkerID() int
	RunOnce() (trackingID string, err error)
	IDType() TrackingIDType
	Name() string
	ActionsPerLoop() int
}

type TrackingIDType

type TrackingIDType string
const (
	TrackingIDTypeMessageID    TrackingIDType = "Message ID"
	TrackingIDTypeTransferID   TrackingIDType = "Token Transfer ID"
	TrackingIDTypeWorkerNumber                = "Worker ID"
)

Jump to

Keyboard shortcuts

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