protobuf: Index | Files | Directories

package benchmarks

import ""


Package Files



var File_benchmarks_proto protoreflect.FileDescriptor

type BenchmarkDataset Uses

type BenchmarkDataset struct {

    // Name of the benchmark dataset.  This should be unique across all datasets.
    // Should only contain word characters: [a-zA-Z0-9_]
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Fully-qualified name of the protobuf message for this dataset.
    // It will be one of the messages defined benchmark_messages_proto2.proto
    // or benchmark_messages_proto3.proto.
    // Implementations that do not support reflection can implement this with
    // an explicit "if/else" chain that lists every known message defined
    // in those files.
    MessageName string `protobuf:"bytes,2,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
    // The payload(s) for this dataset.  They should be parsed or serialized
    // in sequence, in a loop, ie.
    //  while (!benchmarkDone) {  // Benchmark runner decides when to exit.
    //    for (i = 0; i < benchmark.payload.length; i++) {
    //      parse(benchmark.payload[i])
    //    }
    //  }
    // This is intended to let datasets include a variety of data to provide
    // potentially more realistic results than just parsing the same message
    // over and over.  A single message parsed repeatedly could yield unusually
    // good branch prediction performance.
    Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
    // contains filtered or unexported fields

func (*BenchmarkDataset) Descriptor Uses

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

Deprecated: Use BenchmarkDataset.ProtoReflect.Descriptor instead.

func (*BenchmarkDataset) GetMessageName Uses

func (x *BenchmarkDataset) GetMessageName() string

func (*BenchmarkDataset) GetName Uses

func (x *BenchmarkDataset) GetName() string

func (*BenchmarkDataset) GetPayload Uses

func (x *BenchmarkDataset) GetPayload() [][]byte

func (*BenchmarkDataset) ProtoMessage Uses

func (*BenchmarkDataset) ProtoMessage()

func (*BenchmarkDataset) ProtoReflect Uses

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

func (*BenchmarkDataset) Reset Uses

func (x *BenchmarkDataset) Reset()

func (*BenchmarkDataset) String Uses

func (x *BenchmarkDataset) String() string



Package benchmarks imports 4 packages (graph). Updated 2020-09-22. Refresh now. Tools for package owners.