benchmarks.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that runtime/protoimpl is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  14. )
  15. type BenchmarkDataset struct {
  16. state protoimpl.MessageState
  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. sizeCache protoimpl.SizeCache
  43. unknownFields protoimpl.UnknownFields
  44. }
  45. func (x *BenchmarkDataset) Reset() {
  46. *x = BenchmarkDataset{}
  47. }
  48. func (x *BenchmarkDataset) String() string {
  49. return protoimpl.X.MessageStringOf(x)
  50. }
  51. func (*BenchmarkDataset) ProtoMessage() {}
  52. func (x *BenchmarkDataset) ProtoReflect() protoreflect.Message {
  53. mi := &file_benchmarks_proto_msgTypes[0]
  54. if protoimpl.UnsafeEnabled && x != nil {
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. if ms.LoadMessageInfo() == nil {
  57. ms.StoreMessageInfo(mi)
  58. }
  59. return ms
  60. }
  61. return mi.MessageOf(x)
  62. }
  63. // Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead.
  64. func (*BenchmarkDataset) Descriptor() ([]byte, []int) {
  65. return file_benchmarks_proto_rawDescGZIP(), []int{0}
  66. }
  67. func (x *BenchmarkDataset) GetName() string {
  68. if x != nil {
  69. return x.Name
  70. }
  71. return ""
  72. }
  73. func (x *BenchmarkDataset) GetMessageName() string {
  74. if x != nil {
  75. return x.MessageName
  76. }
  77. return ""
  78. }
  79. func (x *BenchmarkDataset) GetPayload() [][]byte {
  80. if x != nil {
  81. return x.Payload
  82. }
  83. return nil
  84. }
  85. var File_benchmarks_proto protoreflect.FileDescriptor
  86. var file_benchmarks_proto_rawDesc = []byte{
  87. 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  88. 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63,
  89. 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73,
  90. 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  91. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  92. 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65,
  93. 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
  94. 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
  95. 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  96. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68,
  97. 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
  98. 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  99. 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
  100. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73,
  101. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  102. }
  103. var (
  104. file_benchmarks_proto_rawDescOnce sync.Once
  105. file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
  106. )
  107. func file_benchmarks_proto_rawDescGZIP() []byte {
  108. file_benchmarks_proto_rawDescOnce.Do(func() {
  109. file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData)
  110. })
  111. return file_benchmarks_proto_rawDescData
  112. }
  113. var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  114. var file_benchmarks_proto_goTypes = []interface{}{
  115. (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
  116. }
  117. var file_benchmarks_proto_depIdxs = []int32{
  118. 0, // starting offset of method output_type sub-list
  119. 0, // starting offset of method input_type sub-list
  120. 0, // starting offset of extension type_name sub-list
  121. 0, // starting offset of extension extendee sub-list
  122. 0, // starting offset of field type_name sub-list
  123. }
  124. func init() { file_benchmarks_proto_init() }
  125. func file_benchmarks_proto_init() {
  126. if File_benchmarks_proto != nil {
  127. return
  128. }
  129. if !protoimpl.UnsafeEnabled {
  130. file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  131. switch v := v.(*BenchmarkDataset); i {
  132. case 0:
  133. return &v.state
  134. case 4:
  135. return &v.sizeCache
  136. case 5:
  137. return &v.unknownFields
  138. default:
  139. return nil
  140. }
  141. }
  142. }
  143. out := protoimpl.TypeBuilder{
  144. File: protoimpl.DescBuilder{
  145. RawDescriptor: file_benchmarks_proto_rawDesc,
  146. NumEnums: 0,
  147. NumMessages: 1,
  148. NumExtensions: 0,
  149. NumServices: 0,
  150. },
  151. GoTypes: file_benchmarks_proto_goTypes,
  152. DependencyIndexes: file_benchmarks_proto_depIdxs,
  153. MessageInfos: file_benchmarks_proto_msgTypes,
  154. }.Build()
  155. File_benchmarks_proto = out.File
  156. file_benchmarks_proto_rawDesc = nil
  157. file_benchmarks_proto_goTypes = nil
  158. file_benchmarks_proto_depIdxs = nil
  159. }