summaryrefslogtreecommitdiff
path: root/benchmarks/parsetostruct.proto2_compiled.cc
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-08-04 22:06:02 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-08-04 22:06:02 -0700
commit306bc554c67c23ddd52e5ece0e3971214b2da4e7 (patch)
tree898406cd3264ee2d001d334cd2b81922cbd23330 /benchmarks/parsetostruct.proto2_compiled.cc
parent1733b582579927379bc04a5838add06b76ada427 (diff)
More work on benchmarks (performance tests).
Diffstat (limited to 'benchmarks/parsetostruct.proto2_compiled.cc')
-rw-r--r--benchmarks/parsetostruct.proto2_compiled.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/parsetostruct.proto2_compiled.cc b/benchmarks/parsetostruct.proto2_compiled.cc
index 339e184..4091ed0 100644
--- a/benchmarks/parsetostruct.proto2_compiled.cc
+++ b/benchmarks/parsetostruct.proto2_compiled.cc
@@ -7,7 +7,7 @@
#include <fstream>
static std::string str;
-MESSAGE_CIDENT msg;
+MESSAGE_CIDENT msg[NUM_MESSAGES];
static bool initialize()
{
@@ -27,9 +27,9 @@ static void cleanup()
{
}
-static size_t run()
+static size_t run(int i)
{
- if(!msg.ParseFromString(str)) {
+ if(!msg[i%NUM_MESSAGES].ParseFromString(str)) {
fprintf(stderr, "Error parsing with proto2.\n");
return 0;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback