diff options
Diffstat (limited to 'benchmarks/parsetostruct.proto2_compiled.cc')
-rw-r--r-- | benchmarks/parsetostruct.proto2_compiled.cc | 6 |
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; } |