summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-09 11:10:16 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-09 11:10:16 -0700
commit4d9c39b94d498e8a3ad2fb4966833092579ed038 (patch)
tree3cb44dae55cd4da6ff0f9b6e0644b0d0e9e3e803 /benchmark
parent9bc15a1e74623753bcce0404e9cbd67f56a5e0e1 (diff)
Make benchmark run out-of-the-box.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/benchmark.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/benchmark.cc b/benchmark/benchmark.cc
index 05184bc..a91c716 100644
--- a/benchmark/benchmark.cc
+++ b/benchmark/benchmark.cc
@@ -1,6 +1,6 @@
#include <time.h>
-#include "google_speed.pb.h"
+#include "google_messages.pb.h"
#include "test_util.h"
#include "upb_context.h"
#include "upb_msg.h"
@@ -10,7 +10,7 @@ int main ()
struct upb_context c;
upb_context_init(&c);
struct upb_string fds;
- if(!upb_strreadfile("google_messages.proto.bin", &fds)) {
+ if(!upb_strreadfile("benchmark/google_messages.proto.pb", &fds)) {
fprintf(stderr, "Couldn't read google_speed.proto.bin.\n");
return 1;
}
@@ -36,7 +36,7 @@ int main ()
upb_msg_parse_init(&s, data, m, false, true);
size_t read;
struct upb_string str;
- if(!upb_strreadfile("google_message2.dat", &str)) {
+ if(!upb_strreadfile("benchmark/google_message2.dat", &str)) {
fprintf(stderr, "Error reading google_message2.dat\n");
return 1;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback