Documentation
¶
Index ¶
- Constants
- Variables
- func GeneratePolyglot() *polyglot.Benchmark
- func GenerateProtobuf() *protobuf.Benchmark
- func Validate(b *Benchmark) bool
- func ValidatePolyglot(b *polyglot.Benchmark) bool
- func ValidateProtobuf(b *protobuf.Benchmark) bool
- type Benchmark
- type EmbeddedMessage
- type EnumMessage
- type EnumMessageEmbeddedEnum
- type Map
- type MapBuiltMapMap
Constants ¶
View Source
const ( TestSize = 1024 Message = "Hello, World!" MapKey0 = "Hello, World!" MapKey1 = "Hello Other World!" MapValue0 = 1.0 MapValue1 = 2.0 RepeatedFormat = "Hello Embedded World %d!" ENUMMessage = "ENUM MESSAGE" )
View Source
const (
EnumMessageUNIVERSAL = EnumMessageEmbeddedEnum(0)
)
Variables ¶
View Source
var (
ByteMessage = []byte("Hello, World!")
)
Functions ¶
func GeneratePolyglot ¶
func GenerateProtobuf ¶
func ValidatePolyglot ¶
func ValidateProtobuf ¶
Types ¶
type Benchmark ¶
type Benchmark struct { Message string Embedded *EmbeddedMessage EmbeddedMap *Map EnumMessage *EnumMessage Repeated []*EmbeddedMessage }
type EmbeddedMessage ¶
type EmbeddedMessage struct {
EmbeddedData []byte
}
type EnumMessage ¶
type EnumMessage struct { Message string Embedded EnumMessageEmbeddedEnum // contains filtered or unexported fields }
type EnumMessageEmbeddedEnum ¶
type EnumMessageEmbeddedEnum uint32
type Map ¶
type Map struct {
BuiltMap MapBuiltMapMap
}
type MapBuiltMapMap ¶
Click to show internal directories.
Click to hide internal directories.