summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-08-19 17:19:53 -0700
committerJoshua Haberman <joshua@reverberate.org>2011-08-19 17:19:53 -0700
commit06b8181f975d66341fe8b96999c911a8ed24447c (patch)
treede95c722ffdc9e69dc5b54d5b3c034e40b538de4 /Makefile
parent40f271b8543abb6fadda19c350b61cd06f176648 (diff)
Benchmark to parse into proto2 messages.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile54
1 files changed, 51 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b0e3d9a..f413ca2 100644
--- a/Makefile
+++ b/Makefile
@@ -296,7 +296,16 @@ BENCHMARKS=$(UPB_BENCHMARKS) \
benchmarks/b.parsetostruct_googlemessage1.proto2_table \
benchmarks/b.parsetostruct_googlemessage2.proto2_table \
benchmarks/b.parsetostruct_googlemessage1.proto2_compiled \
- benchmarks/b.parsetostruct_googlemessage2.proto2_compiled
+ benchmarks/b.parsetostruct_googlemessage2.proto2_compiled \
+ benchmarks/b.parsetoproto2_googlemessage1.upb \
+ benchmarks/b.parsetoproto2_googlemessage2.upb
+
+ifdef USE_JIT
+BENCHMARKS += \
+ benchmarks/b.parsetoproto2_googlemessage1.upb_jit \
+ benchmarks/b.parsetoproto2_googlemessage2.upb_jit
+endif
+
upb_benchmarks: $(UPB_BENCHMARKS)
benchmarks: $(BENCHMARKS)
benchmark:
@@ -375,6 +384,26 @@ benchmarks/b.parsestream_googlemessage2.upb_jit: \
-DMESSAGE_DESCRIPTOR_FILE=\"google_messages.proto.pb\" \
-DMESSAGE_FILE=\"google_message2.dat\" -DJIT=true \
$(LIBUPB)
+
+benchmarks/b.parsetoproto2_googlemessage1.upb_jit \
+benchmarks/b.parsetoproto2_googlemessage2.upb_jit: \
+ benchmarks/parsetoproto2.upb.cc benchmarks/google_messages.pb.cc
+ $(E) 'CXX benchmarks/parsetoproto2.upb.cc (benchmarks.SpeedMessage1, jit)'
+ $(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o benchmarks/b.parsetoproto2_googlemessage1.upb_jit $< \
+ -DMESSAGE_CIDENT="benchmarks::SpeedMessage1" \
+ -DMESSAGE_NAME=\"benchmarks.SpeedMessage1\" \
+ -DMESSAGE_FILE=\"google_message1.dat\" \
+ -DMESSAGE_HFILE=\"google_messages.pb.h\" \
+ -DMESSAGE_DESCRIPTOR_FILE=\"google_messages.proto.pb\" -DJIT=true \
+ benchmarks/google_messages.pb.cc -lprotobuf -lpthread $(LIBUPB)
+ $(E) 'CXX benchmarks/parsetoproto2.upb.cc (benchmarks.SpeedMessage2, jit)'
+ $(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o benchmarks/b.parsetoproto2_googlemessage2.upb_jit $< \
+ -DMESSAGE_CIDENT="benchmarks::SpeedMessage2" \
+ -DMESSAGE_NAME=\"benchmarks.SpeedMessage2\" \
+ -DMESSAGE_FILE=\"google_message2.dat\" \
+ -DMESSAGE_HFILE=\"google_messages.pb.h\" -DJIT=true \
+ -DMESSAGE_DESCRIPTOR_FILE=\"google_messages.proto.pb\" \
+ benchmarks/google_messages.pb.cc -lprotobuf -lpthread $(LIBUPB)
endif
benchmarks/b.parsetostruct_googlemessage1.proto2_table \
@@ -395,8 +424,7 @@ benchmarks/b.parsetostruct_googlemessage2.proto2_table: \
benchmarks/b.parsetostruct_googlemessage1.proto2_compiled \
benchmarks/b.parsetostruct_googlemessage2.proto2_compiled: \
- benchmarks/parsetostruct.proto2_compiled.cc \
- benchmarks/parsetostruct.proto2_table.cc benchmarks/google_messages.pb.cc
+ benchmarks/parsetostruct.proto2_compiled.cc benchmarks/google_messages.pb.cc
$(E) 'CXX benchmarks/parsetostruct.proto2_compiled.cc (benchmarks.SpeedMessage1)'
$(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o benchmarks/b.parsetostruct_googlemessage1.proto2_compiled $< \
-DMESSAGE_CIDENT="benchmarks::SpeedMessage1" \
@@ -410,6 +438,26 @@ benchmarks/b.parsetostruct_googlemessage2.proto2_compiled: \
-DMESSAGE_HFILE=\"google_messages.pb.h\" \
benchmarks/google_messages.pb.cc -lprotobuf -lpthread
+benchmarks/b.parsetoproto2_googlemessage1.upb \
+benchmarks/b.parsetoproto2_googlemessage2.upb: \
+ benchmarks/parsetoproto2.upb.cc benchmarks/google_messages.pb.cc
+ $(E) 'CXX benchmarks/parsetoproto2.upb.cc (benchmarks.SpeedMessage1, nojit)'
+ $(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o benchmarks/b.parsetoproto2_googlemessage1.upb $< \
+ -DMESSAGE_CIDENT="benchmarks::SpeedMessage1" \
+ -DMESSAGE_NAME=\"benchmarks.SpeedMessage1\" \
+ -DMESSAGE_FILE=\"google_message1.dat\" \
+ -DMESSAGE_HFILE=\"google_messages.pb.h\" \
+ -DMESSAGE_DESCRIPTOR_FILE=\"google_messages.proto.pb\" -DJIT=false \
+ benchmarks/google_messages.pb.cc -lprotobuf -lpthread $(LIBUPB)
+ $(E) 'CXX benchmarks/parsetoproto2.upb.cc (benchmarks.SpeedMessage2, nojit)'
+ $(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o benchmarks/b.parsetoproto2_googlemessage2.upb $< \
+ -DMESSAGE_CIDENT="benchmarks::SpeedMessage2" \
+ -DMESSAGE_NAME=\"benchmarks.SpeedMessage2\" \
+ -DMESSAGE_FILE=\"google_message2.dat\" \
+ -DMESSAGE_HFILE=\"google_messages.pb.h\" \
+ -DMESSAGE_DESCRIPTOR_FILE=\"google_messages.proto.pb\" -DJIT=false \
+ benchmarks/google_messages.pb.cc -lprotobuf -lpthread $(LIBUPB)
+
# Lua extension ##################################################################
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback