Skip to content

Commit 97779fa

Browse files
liyuying0000copybara-github
authored andcommitted
Improve Proto Benchmark Representativeness.
PiperOrigin-RevId: 819492894 Change-Id: If03619c0477ff91428d26d3243633f970ec6cc8c
1 parent d24bac7 commit 97779fa

22 files changed

+14723
-33020
lines changed

fleetbench/proto/Message0.proto

Lines changed: 204 additions & 196 deletions
Large diffs are not rendered by default.

fleetbench/proto/Message1.proto

Lines changed: 559 additions & 1715 deletions
Large diffs are not rendered by default.

fleetbench/proto/Message2.proto

Lines changed: 73 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -18,129 +18,100 @@ syntax = "proto2";
1818
package fleetbench.proto;
1919

2020
message Message2 {
21-
optional string f_0 = 2;
21+
optional int32 f_0 = 1;
2222
message M1 {
23-
optional bytes f_0 = 1;
24-
optional int64 f_1 = 2;
25-
optional fixed32 f_2 = 5;
26-
repeated float f_3 = 6 [packed = true];
23+
optional int64 f_0 = 1;
2724
message M2 {
28-
optional int32 f_0 = 2;
29-
}
30-
repeated M2 f_7 = 7;
31-
message M3 {
32-
optional int64 f_0 = 1;
25+
optional string f_0 = 1;
3326
message M4 {
34-
repeated int32 f_0 = 1 [packed = true];
35-
optional int64 f_1 = 3;
36-
optional int32 f_2 = 4;
37-
optional string f_3 = 5;
38-
optional int32 f_4 = 6;
39-
message M5 {
40-
optional double f_0 = 1;
41-
message M8 {
42-
optional bytes f_0 = 1;
43-
optional bool f_1 = 3;
44-
}
45-
repeated M8 f_2 = 2;
46-
}
47-
repeated M5 f_8 = 8;
27+
optional string f_0 = 2;
4828
message M6 {
49-
optional string f_0 = 2;
50-
message M9 {
51-
optional int64 f_0 = 2;
52-
message M12 {
53-
optional uint32 f_0 = 1;
54-
}
55-
optional M12 f_3 = 3;
29+
optional int32 f_0 = 2;
30+
optional int32 f_1 = 3;
31+
optional float f_2 = 4;
32+
message M7 {
33+
optional string f_0 = 1;
5634
}
57-
repeated M9 f_6 = 6;
58-
message M10 {
59-
enum E1 {
60-
E1_UNSPECIFIED = 0;
61-
E1_CONST_1 = 14;
62-
E1_CONST_2 = 63;
63-
E1_CONST_3 = 59;
64-
E1_CONST_4 = 75;
65-
E1_CONST_5 = 67;
66-
}
67-
optional E1 f_0 = 1;
35+
repeated M7 f_5 = 5;
36+
message M8 {
37+
optional string f_0 = 1;
6838
message M11 {
69-
optional int32 f_0 = 1;
70-
}
71-
repeated M11 f_3 = 3;
72-
message M13 {
7339
optional float f_0 = 1;
74-
optional string f_1 = 2;
75-
optional int64 f_2 = 4;
76-
message M14 {
40+
}
41+
repeated M11 f_2 = 2;
42+
}
43+
repeated M8 f_8 = 8;
44+
message M9 {
45+
optional string f_0 = 1;
46+
message M10 {
47+
enum E1 {
48+
E1_UNSPECIFIED = 0;
49+
E1_CONST_1 = 64;
50+
E1_CONST_2 = 113;
51+
E1_CONST_3 = 8;
52+
E1_CONST_4 = 32;
53+
E1_CONST_5 = 10;
54+
}
55+
optional E1 f_0 = 2;
56+
message M12 {
57+
optional string f_0 = 2;
58+
}
59+
optional M12 f_4 = 4;
60+
message M13 {
61+
optional bool f_0 = 1;
62+
optional int32 f_1 = 2;
7763
enum E2 {
7864
E2_UNSPECIFIED = 0;
79-
E2_CONST_1 = 13;
80-
E2_CONST_2 = 70;
81-
E2_CONST_3 = 20;
82-
E2_CONST_4 = 21;
83-
E2_CONST_5 = 85;
65+
E2_CONST_1 = 115;
66+
E2_CONST_2 = 98;
67+
E2_CONST_3 = 109;
68+
E2_CONST_4 = 58;
69+
E2_CONST_5 = 38;
8470
}
85-
optional E2 f_0 = 1;
86-
optional string f_1 = 2;
87-
repeated int32 f_2 = 3 [packed = true];
88-
optional string f_3 = 4 ;
89-
optional int32 f_4 = 5;
90-
optional int32 f_5 = 6;
91-
optional int32 f_6 = 7;
92-
optional uint32 f_7 = 9;
93-
message M15 {
94-
optional int32 f_0 = 1;
95-
optional double f_1 = 3;
96-
optional int64 f_2 = 4;
97-
message M16 {
98-
optional uint32 f_0 = 1;
99-
optional int64 f_1 = 3;
71+
optional E2 f_2 = 3;
72+
message M14 {
73+
optional int64 f_0 = 1;
74+
message M15 {
10075
enum E3 {
10176
E3_UNSPECIFIED = 0;
102-
E3_CONST_1 = 18;
103-
E3_CONST_2 = 84;
104-
E3_CONST_3 = 113;
105-
E3_CONST_4 = 6;
106-
E3_CONST_5 = 74;
77+
E3_CONST_1 = 63;
78+
E3_CONST_2 = 23;
79+
E3_CONST_3 = 117;
80+
E3_CONST_4 = 106;
81+
E3_CONST_5 = 71;
10782
}
108-
optional E3 f_2 = 5;
109-
optional int64 f_3 = 6;
110-
optional int64 f_4 = 7;
111-
repeated string f_5 = 8;
112-
optional string f_6 = 9;
113-
optional int64 f_7 = 10;
114-
optional string f_8 = 11;
115-
optional string f_9 = 12;
116-
message M17 {
117-
optional int32 f_0 = 1;
118-
optional int64 f_1 = 2;
119-
optional string f_2 = 3;
83+
repeated E3 f_0 = 1 [packed = true];
84+
message M16 {
85+
optional double f_0 = 2;
86+
optional int64 f_1 = 3;
87+
optional int64 f_2 = 4;
88+
optional uint64 f_3 = 5;
12089
}
121-
repeated M17 f_13 = 13;
90+
optional M16 f_2 = 2;
12291
}
123-
optional M16 f_5 = 5;
92+
repeated M15 f_2 = 2;
12493
}
125-
optional M15 f_10 = 10;
94+
optional M14 f_4 = 4;
12695
}
127-
optional M14 f_6 = 6;
96+
optional M13 f_6 = 6;
12897
}
129-
optional M13 f_5 = 5;
98+
optional M10 f_2 = 2;
13099
}
131-
repeated M10 f_8 = 8;
100+
repeated M9 f_9 = 9;
132101
}
133-
repeated M6 f_9 = 9;
134-
message M7 {
135-
optional int32 f_0 = 2;
136-
optional float f_1 = 3;
137-
optional string f_2 = 4;
138-
}
139-
optional M7 f_10 = 10;
102+
repeated M6 f_3 = 3;
103+
}
104+
optional M4 f_3 = 3;
105+
}
106+
repeated M2 f_2 = 2;
107+
message M3 {
108+
optional int32 f_0 = 1;
109+
message M5 {
110+
optional int32 f_0 = 1;
140111
}
141-
repeated M4 f_3 = 3;
112+
repeated M5 f_3 = 3;
142113
}
143-
optional M3 f_8 = 8;
114+
optional M3 f_4 = 4;
144115
}
145-
repeated M1 f_3 = 3;
116+
optional M1 f_2 = 2;
146117
}

0 commit comments

Comments
 (0)