summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-08-22 15:50:05 -0700
committerJoshua Haberman <joshua@reverberate.org>2011-08-22 15:50:05 -0700
commite8796beffc26c2c642c8e62b9427d0f574872771 (patch)
tree364c1cb5bd0174d2ca50f8556d8ff207ef023bc4 /benchmarks
parent9d2fcd3692dfb8c69e02ac55f817562cef7426e1 (diff)
Add comment clarifying that the proto2 benchmark is ugly and temporary.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/parsetoproto2.upb.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/benchmarks/parsetoproto2.upb.cc b/benchmarks/parsetoproto2.upb.cc
index 75cff88..386eeaa 100644
--- a/benchmarks/parsetoproto2.upb.cc
+++ b/benchmarks/parsetoproto2.upb.cc
@@ -1,4 +1,12 @@
-
+// This file is a crime against software engineering. It breaks the
+// encapsulation of proto2 in numerous ways, violates the C++ standard
+// in others, and generally deserves to have comtempt and scorn heaped
+// upon it.
+//
+// Its purpose is to get an accurate benchmark for how fast upb can
+// parse into proto2 data structures. To add proper support for this
+// functionality, proto2 would need to expose actual support for the
+// operations we are trying to perform here.
#define __STDC_LIMIT_MACROS 1
#include "main.c"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback