summaryrefslogtreecommitdiff
path: root/tests/test.proto
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2012-03-24 11:24:16 -0700
committerJoshua Haberman <jhaberman@gmail.com>2012-03-24 11:24:16 -0700
commit86bad61b76a260ffc442acffbe58feee67df45e5 (patch)
treee375e62ff6d7fea9fb810830e66118e67b4ec2c8 /tests/test.proto
parentdb59a5198f890ecdcac1227b0bb998160acac5c6 (diff)
Sync from internal Google development.
Many improvements, too many to mention. One significant perf regression warrants investigation: omitfp.parsetoproto2_googlemessage1.upb_jit: 343 -> 252 (-26.53) plain.parsetoproto2_googlemessage1.upb_jit: 334 -> 251 (-24.85) 25% regression for this benchmark is bad, but since I don't think there's any fundamental design issue that caused it I'm going to go ahead with the commit anyway. Can investigate and fix later. Other benchmarks were neutral or showed slight improvement.
Diffstat (limited to 'tests/test.proto')
-rw-r--r--tests/test.proto24
1 files changed, 15 insertions, 9 deletions
diff --git a/tests/test.proto b/tests/test.proto
index f3dde24..e634ed2 100644
--- a/tests/test.proto
+++ b/tests/test.proto
@@ -1,14 +1,10 @@
// A series of messages with various kinds of cycles in them.
-// +-+---+ +---+
-// V | | | |
-// A -> B-+-> C -> D<--+
-// ^ | |
-// +----------+----+
-//
-// This tests the following cases:
-// - B and C are together in multiple cycles
-// - B and D are cycles to themselves.
+// +-+---+ +---+ +---+
+// V | | V | V |
+// A -> B-+-> C -> D---+--->E---+
+// ^ |`---|--------^
+// +----------+----+ F
message A {
optional B b = 1;
@@ -23,11 +19,21 @@ message C {
optional A a = 1;
optional B b = 2;
optional D d = 3;
+ optional E e = 4;
}
message D {
optional A a = 1;
optional D d = 2;
+ optional E e = 3;
+}
+
+message E {
+ optional E e = 1;
+}
+
+message F {
+ optional E e = 1;
}
// A proto with a bunch of simple primitives.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback