benchmark

package
v0.0.0-...-cdd6ff6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

benchmark

The benchmark package benchmarks operations and logs them upon completion of the Simi job.

Build prerequisites

  • protoc
  • protoc-gen-go: go get -u github.com/golang/protobuf/protoc-gen-go

Updating message

After editing the .proto file, run go generate

Documentation

Index

Constants

View Source
const MaxDuration = 9 * time.Hour

MaxDuration is an arbitrary duration that should be larger than any simi benchmark-measured duration.

Variables

View Source
var File_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Result

type Result struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`

	Elapsed  int64 `protobuf:"varint,1,opt,name=elapsed,proto3" json:"elapsed,omitempty"`
	Min      int64 `protobuf:"varint,4,opt,name=min,proto3" json:"min,omitempty"`
	Max      int64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"`
	AvgTotal int64 `protobuf:"varint,6,opt,name=avg_total,json=avgTotal,proto3" json:"avg_total,omitempty"`
	Start    int64 `protobuf:"varint,7,opt,name=start,proto3" json:"start,omitempty"`
	// contains filtered or unexported fields
}

A benchmark execution result

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetAvgTotal

func (x *Result) GetAvgTotal() int64

func (*Result) GetElapsed

func (x *Result) GetElapsed() int64

func (*Result) GetErr

func (x *Result) GetErr() string

func (*Result) GetMax

func (x *Result) GetMax() int64

func (*Result) GetMin

func (x *Result) GetMin() int64

func (*Result) GetStart

func (x *Result) GetStart() int64

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

Directories

Path Synopsis
The consumer command consumes benchmark results over AMQP
The consumer command consumes benchmark results over AMQP

Jump to

Keyboard shortcuts

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