From 4d9c39b94d498e8a3ad2fb4966833092579ed038 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 9 Jul 2009 11:10:16 -0700 Subject: Make benchmark run out-of-the-box. --- benchmark/benchmark.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'benchmark') 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 -#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; } -- cgit v1.2.3