benchmarks.pb.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. state protoimpl.MessageState
  18. // Name of the benchmark dataset. This should be unique across all datasets.
  19. // Should only contain word characters: [a-zA-Z0-9_]
  20. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  21. // Fully-qualified name of the protobuf message for this dataset.
  22. // It will be one of the messages defined benchmark_messages_proto2.proto
  23. // or benchmark_messages_proto3.proto.
  24. //
  25. // Implementations that do not support reflection can implement this with
  26. // an explicit "if/else" chain that lists every known message defined
  27. // in those files.
  28. MessageName string `protobuf:"bytes,2,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
  29. // The payload(s) for this dataset. They should be parsed or serialized
  30. // in sequence, in a loop, ie.
  31. //
  32. // while (!benchmarkDone) { // Benchmark runner decides when to exit.
  33. // for (i = 0; i < benchmark.payload.length; i++) {
  34. // parse(benchmark.payload[i])
  35. // }
  36. // }
  37. //
  38. // This is intended to let datasets include a variety of data to provide
  39. // potentially more realistic results than just parsing the same message
  40. // over and over. A single message parsed repeatedly could yield unusually
  41. // good branch prediction performance.
  42. Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
  43. sizeCache protoimpl.SizeCache
  44. unknownFields protoimpl.UnknownFields
  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. mi := &file_benchmarks_proto_msgTypes[0]
  55. if protoimpl.UnsafeEnabled && x != nil {
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. if ms.LoadMessageInfo() == nil {
  58. ms.StoreMessageInfo(mi)
  59. }
  60. return ms
  61. }
  62. return mi.MessageOf(x)
  63. }
  64. func (x *BenchmarkDataset) XXX_Methods() *protoiface.Methods {
  65. return file_benchmarks_proto_msgTypes[0].Methods()
  66. }
  67. // Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead.
  68. func (*BenchmarkDataset) Descriptor() ([]byte, []int) {
  69. return file_benchmarks_proto_rawDescGZIP(), []int{0}
  70. }
  71. func (x *BenchmarkDataset) GetName() string {
  72. if x != nil {
  73. return x.Name
  74. }
  75. return ""
  76. }
  77. func (x *BenchmarkDataset) GetMessageName() string {
  78. if x != nil {
  79. return x.MessageName
  80. }
  81. return ""
  82. }
  83. func (x *BenchmarkDataset) GetPayload() [][]byte {
  84. if x != nil {
  85. return x.Payload
  86. }
  87. return nil
  88. }
  89. var File_benchmarks_proto protoreflect.FileDescriptor
  90. var file_benchmarks_proto_rawDesc = []byte{
  91. 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  92. 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63,
  93. 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73,
  94. 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  95. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  96. 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65,
  97. 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
  98. 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
  99. 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  100. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68,
  101. 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
  102. 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  103. 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
  104. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73,
  105. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  106. }
  107. var (
  108. file_benchmarks_proto_rawDescOnce sync.Once
  109. file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
  110. )
  111. func file_benchmarks_proto_rawDescGZIP() []byte {
  112. file_benchmarks_proto_rawDescOnce.Do(func() {
  113. file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData)
  114. })
  115. return file_benchmarks_proto_rawDescData
  116. }
  117. var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  118. var file_benchmarks_proto_goTypes = []interface{}{
  119. (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
  120. }
  121. var file_benchmarks_proto_depIdxs = []int32{
  122. 0, // starting offset of method output_type sub-list
  123. 0, // starting offset of method input_type sub-list
  124. 0, // starting offset of extension type_name sub-list
  125. 0, // starting offset of extension extendee sub-list
  126. 0, // starting offset of field type_name sub-list
  127. }
  128. func init() { file_benchmarks_proto_init() }
  129. func file_benchmarks_proto_init() {
  130. if File_benchmarks_proto != nil {
  131. return
  132. }
  133. if !protoimpl.UnsafeEnabled {
  134. file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  135. switch v := v.(*BenchmarkDataset); i {
  136. case 0:
  137. return &v.state
  138. case 4:
  139. return &v.sizeCache
  140. case 5:
  141. return &v.unknownFields
  142. default:
  143. return nil
  144. }
  145. }
  146. }
  147. out := protoimpl.TypeBuilder{
  148. File: protoimpl.DescBuilder{
  149. RawDescriptor: file_benchmarks_proto_rawDesc,
  150. NumEnums: 0,
  151. NumMessages: 1,
  152. NumExtensions: 0,
  153. NumServices: 0,
  154. },
  155. GoTypes: file_benchmarks_proto_goTypes,
  156. DependencyIndexes: file_benchmarks_proto_depIdxs,
  157. MessageInfos: file_benchmarks_proto_msgTypes,
  158. }.Build()
  159. File_benchmarks_proto = out.File
  160. file_benchmarks_proto_rawDesc = nil
  161. file_benchmarks_proto_goTypes = nil
  162. file_benchmarks_proto_depIdxs = nil
  163. }