benchmarks.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: benchmarks.proto
  3. package benchmarks
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoiface "google.golang.org/protobuf/runtime/protoiface"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that runtime/protoimpl is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  13. // Verify that this generated code is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  15. )
  16. type BenchmarkDataset struct {
  17. // Name of the benchmark dataset. This should be unique across all datasets.
  18. // Should only contain word characters: [a-zA-Z0-9_]
  19. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  20. // Fully-qualified name of the protobuf message for this dataset.
  21. // It will be one of the messages defined benchmark_messages_proto2.proto
  22. // or benchmark_messages_proto3.proto.
  23. //
  24. // Implementations that do not support reflection can implement this with
  25. // an explicit "if/else" chain that lists every known message defined
  26. // in those files.
  27. MessageName string `protobuf:"bytes,2,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
  28. // The payload(s) for this dataset. They should be parsed or serialized
  29. // in sequence, in a loop, ie.
  30. //
  31. // while (!benchmarkDone) { // Benchmark runner decides when to exit.
  32. // for (i = 0; i < benchmark.payload.length; i++) {
  33. // parse(benchmark.payload[i])
  34. // }
  35. // }
  36. //
  37. // This is intended to let datasets include a variety of data to provide
  38. // potentially more realistic results than just parsing the same message
  39. // over and over. A single message parsed repeatedly could yield unusually
  40. // good branch prediction performance.
  41. Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
  42. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  43. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  44. XXX_sizecache protoimpl.SizeCache `json:"-"`
  45. }
  46. func (x *BenchmarkDataset) Reset() {
  47. *x = BenchmarkDataset{}
  48. }
  49. func (x *BenchmarkDataset) String() string {
  50. return protoimpl.X.MessageStringOf(x)
  51. }
  52. func (*BenchmarkDataset) ProtoMessage() {}
  53. func (x *BenchmarkDataset) ProtoReflect() protoreflect.Message {
  54. return file_benchmarks_proto_msgTypes[0].MessageOf(x)
  55. }
  56. func (m *BenchmarkDataset) XXX_Methods() *protoiface.Methods {
  57. return file_benchmarks_proto_msgTypes[0].Methods()
  58. }
  59. // Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead.
  60. func (*BenchmarkDataset) Descriptor() ([]byte, []int) {
  61. return file_benchmarks_proto_rawDescGZIP(), []int{0}
  62. }
  63. func (x *BenchmarkDataset) GetName() string {
  64. if x != nil {
  65. return x.Name
  66. }
  67. return ""
  68. }
  69. func (x *BenchmarkDataset) GetMessageName() string {
  70. if x != nil {
  71. return x.MessageName
  72. }
  73. return ""
  74. }
  75. func (x *BenchmarkDataset) GetPayload() [][]byte {
  76. if x != nil {
  77. return x.Payload
  78. }
  79. return nil
  80. }
  81. var File_benchmarks_proto protoreflect.FileDescriptor
  82. var file_benchmarks_proto_rawDesc = []byte{
  83. 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  84. 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63,
  85. 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73,
  86. 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  87. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  88. 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65,
  89. 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
  90. 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
  91. 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  92. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68,
  93. 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
  94. 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  95. 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
  96. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73,
  97. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  98. }
  99. var (
  100. file_benchmarks_proto_rawDescOnce sync.Once
  101. file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
  102. )
  103. func file_benchmarks_proto_rawDescGZIP() []byte {
  104. file_benchmarks_proto_rawDescOnce.Do(func() {
  105. file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData)
  106. })
  107. return file_benchmarks_proto_rawDescData
  108. }
  109. var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  110. var file_benchmarks_proto_goTypes = []interface{}{
  111. (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
  112. }
  113. var file_benchmarks_proto_depIdxs = []int32{
  114. 0, // starting offset of method output_type sub-list
  115. 0, // starting offset of method input_type sub-list
  116. 0, // starting offset of extension type_name sub-list
  117. 0, // starting offset of extension extendee sub-list
  118. 0, // starting offset of field type_name sub-list
  119. }
  120. func init() { file_benchmarks_proto_init() }
  121. func file_benchmarks_proto_init() {
  122. if File_benchmarks_proto != nil {
  123. return
  124. }
  125. out := protoimpl.TypeBuilder{
  126. File: protoimpl.DescBuilder{
  127. RawDescriptor: file_benchmarks_proto_rawDesc,
  128. NumEnums: 0,
  129. NumMessages: 1,
  130. NumExtensions: 0,
  131. NumServices: 0,
  132. },
  133. GoTypes: file_benchmarks_proto_goTypes,
  134. DependencyIndexes: file_benchmarks_proto_depIdxs,
  135. MessageInfos: file_benchmarks_proto_msgTypes,
  136. }.Build()
  137. File_benchmarks_proto = out.File
  138. file_benchmarks_proto_rawDesc = nil
  139. file_benchmarks_proto_goTypes = nil
  140. file_benchmarks_proto_depIdxs = nil
  141. }