BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 1 | benchmarks_protoc_inputs_benchmark_wrapper = \ |
| 2 | benchmarks.proto |
| 3 | |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 4 | benchmarks_protoc_inputs = \ |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 5 | datasets/google_message1/proto3/benchmark_message1_proto3.proto |
Josh Haberman | 2e83110 | 2016-04-27 18:22:22 -0700 | [diff] [blame] | 6 | |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 7 | benchmarks_protoc_inputs_proto2 = \ |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 8 | datasets/google_message1/proto2/benchmark_message1_proto2.proto \ |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 9 | datasets/google_message2/benchmark_message2.proto \ |
| 10 | datasets/google_message3/benchmark_message3.proto \ |
| 11 | datasets/google_message3/benchmark_message3_1.proto \ |
| 12 | datasets/google_message3/benchmark_message3_2.proto \ |
| 13 | datasets/google_message3/benchmark_message3_3.proto \ |
| 14 | datasets/google_message3/benchmark_message3_4.proto \ |
| 15 | datasets/google_message3/benchmark_message3_5.proto \ |
| 16 | datasets/google_message3/benchmark_message3_6.proto \ |
| 17 | datasets/google_message3/benchmark_message3_7.proto \ |
| 18 | datasets/google_message3/benchmark_message3_8.proto \ |
| 19 | datasets/google_message4/benchmark_message4.proto \ |
| 20 | datasets/google_message4/benchmark_message4_1.proto \ |
| 21 | datasets/google_message4/benchmark_message4_2.proto \ |
| 22 | datasets/google_message4/benchmark_message4_3.proto |
Josh Haberman | 2e83110 | 2016-04-27 18:22:22 -0700 | [diff] [blame] | 23 | |
Yilun Chong | 1fd6c17 | 2017-12-04 14:39:08 -0800 | [diff] [blame] | 24 | make_tmp_dir: |
Yilun Chong | 5e732e3 | 2017-12-12 12:05:29 -0800 | [diff] [blame] | 25 | mkdir -p 'tmp/java/src/main/java' |
Yilun Chong | 1fd6c17 | 2017-12-04 14:39:08 -0800 | [diff] [blame] | 26 | touch make_tmp_dir |
Thomas Van Lenten | b661fb5 | 2016-05-06 12:47:41 -0400 | [diff] [blame] | 27 | |
Yilun Chong | 59f7a85 | 2019-02-26 16:23:18 -0800 | [diff] [blame] | 28 | |
Josh Haberman | 2e83110 | 2016-04-27 18:22:22 -0700 | [diff] [blame] | 29 | # We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is |
| 30 | # relative to srcdir, which may not be the same as the current directory when |
| 31 | # building out-of-tree. |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 32 | protoc_middleman: make_tmp_dir $(top_srcdir)/src/protoc$(EXEEXT) $(benchmarks_protoc_inputs) $(well_known_type_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 33 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_out=$$oldpwd/cpp --java_out=$$oldpwd/tmp/java/src/main/java --python_out=$$oldpwd/tmp $(benchmarks_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
Josh Haberman | 2e83110 | 2016-04-27 18:22:22 -0700 | [diff] [blame] | 34 | touch protoc_middleman |
| 35 | |
Yilun Chong | 1fd6c17 | 2017-12-04 14:39:08 -0800 | [diff] [blame] | 36 | protoc_middleman2: make_tmp_dir $(top_srcdir)/src/protoc$(EXEEXT) $(benchmarks_protoc_inputs_proto2) $(well_known_type_protoc_inputs) |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 37 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_out=$$oldpwd/cpp --java_out=$$oldpwd/tmp/java/src/main/java --python_out=$$oldpwd/tmp $(benchmarks_protoc_inputs_proto2) ) |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 38 | touch protoc_middleman2 |
Yilun Chong | fa60e55 | 2018-01-09 10:24:50 -0800 | [diff] [blame] | 39 | |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 40 | all_data = $$(find $$(cd $(srcdir) && pwd) -type f -name "dataset.*.pb" -not -path "$$(cd $(srcdir) && pwd)/tmp/*") |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 41 | |
| 42 | ############# CPP RULES ############## |
| 43 | |
| 44 | benchmarks_protoc_outputs = \ |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 45 | cpp/benchmarks.pb.cc \ |
| 46 | cpp/datasets/google_message1/proto3/benchmark_message1_proto3.pb.cc |
| 47 | |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 48 | benchmarks_protoc_outputs_header = \ |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 49 | cpp/benchmarks.pb.h \ |
| 50 | cpp/datasets/google_message1/proto3/benchmark_message1_proto3.pb.h |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 51 | |
| 52 | benchmarks_protoc_outputs_proto2_header = \ |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 53 | cpp/datasets/google_message1/proto2/benchmark_message1_proto2.pb.h \ |
| 54 | cpp/datasets/google_message2/benchmark_message2.pb.h \ |
| 55 | cpp/datasets/google_message3/benchmark_message3.pb.h \ |
| 56 | cpp/datasets/google_message3/benchmark_message3_1.pb.h \ |
| 57 | cpp/datasets/google_message3/benchmark_message3_2.pb.h \ |
| 58 | cpp/datasets/google_message3/benchmark_message3_3.pb.h \ |
| 59 | cpp/datasets/google_message3/benchmark_message3_4.pb.h \ |
| 60 | cpp/datasets/google_message3/benchmark_message3_5.pb.h \ |
| 61 | cpp/datasets/google_message3/benchmark_message3_6.pb.h \ |
| 62 | cpp/datasets/google_message3/benchmark_message3_7.pb.h \ |
| 63 | cpp/datasets/google_message3/benchmark_message3_8.pb.h \ |
| 64 | cpp/datasets/google_message4/benchmark_message4.pb.h \ |
| 65 | cpp/datasets/google_message4/benchmark_message4_1.pb.h \ |
| 66 | cpp/datasets/google_message4/benchmark_message4_2.pb.h \ |
| 67 | cpp/datasets/google_message4/benchmark_message4_3.pb.h |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 68 | |
| 69 | benchmarks_protoc_outputs_proto2 = \ |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 70 | cpp/datasets/google_message1/proto2/benchmark_message1_proto2.pb.cc \ |
| 71 | cpp/datasets/google_message2/benchmark_message2.pb.cc \ |
| 72 | cpp/datasets/google_message3/benchmark_message3.pb.cc \ |
| 73 | cpp/datasets/google_message3/benchmark_message3_1.pb.cc \ |
| 74 | cpp/datasets/google_message3/benchmark_message3_2.pb.cc \ |
| 75 | cpp/datasets/google_message3/benchmark_message3_3.pb.cc \ |
| 76 | cpp/datasets/google_message3/benchmark_message3_4.pb.cc \ |
| 77 | cpp/datasets/google_message3/benchmark_message3_5.pb.cc \ |
| 78 | cpp/datasets/google_message3/benchmark_message3_6.pb.cc \ |
| 79 | cpp/datasets/google_message3/benchmark_message3_7.pb.cc \ |
| 80 | cpp/datasets/google_message3/benchmark_message3_8.pb.cc \ |
| 81 | cpp/datasets/google_message4/benchmark_message4.pb.cc \ |
| 82 | cpp/datasets/google_message4/benchmark_message4_1.pb.cc \ |
| 83 | cpp/datasets/google_message4/benchmark_message4_2.pb.cc \ |
| 84 | cpp/datasets/google_message4/benchmark_message4_3.pb.cc |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 85 | |
| 86 | |
| 87 | $(benchmarks_protoc_outputs): protoc_middleman |
| 88 | $(benchmarks_protoc_outputs_header): protoc_middleman |
| 89 | $(benchmarks_protoc_outputs_proto2): protoc_middleman2 |
| 90 | $(benchmarks_protoc_outputs_proto2_header): protoc_middleman2 |
| 91 | |
Yilun Chong | 4b02091 | 2017-12-14 17:26:16 -0800 | [diff] [blame] | 92 | initialize_submodule: |
| 93 | oldpwd=`pwd` |
Yilun Chong | 89b914f | 2019-02-26 12:52:06 -0800 | [diff] [blame] | 94 | cd $(top_srcdir) && git submodule update --init -r third_party/benchmark && \ |
| 95 | cd third_party/benchmark && cmake -DCMAKE_BUILD_TYPE=Release && make |
Yilun Chong | 4b02091 | 2017-12-14 17:26:16 -0800 | [diff] [blame] | 96 | cd $$oldpwd |
| 97 | touch initialize_submodule |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 98 | |
Yilun Chong | 4b02091 | 2017-12-14 17:26:16 -0800 | [diff] [blame] | 99 | $(top_srcdir)/third_party/benchmark/src/libbenchmark.a: initialize_submodule |
| 100 | |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 101 | AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare |
| 102 | |
| 103 | bin_PROGRAMS = cpp-benchmark |
| 104 | |
| 105 | cpp_benchmark_LDADD = $(top_srcdir)/src/libprotobuf.la $(top_srcdir)/third_party/benchmark/src/libbenchmark.a |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 106 | cpp_benchmark_SOURCES = cpp/cpp_benchmark.cc |
| 107 | cpp_benchmark_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/cpp -I$(top_srcdir)/third_party/benchmark/include |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 108 | # Explicit deps because BUILT_SOURCES are only done before a "make all/check" |
| 109 | # so a direct "make test_cpp" could fail if parallel enough. |
| 110 | # See: https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html#Recording-Dependencies-manually |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 111 | cpp/cpp_benchmark-cpp_benchmark.$(OBJEXT): $(benchmarks_protoc_outputs) $(benchmarks_protoc_outputs_proto2) $(benchmarks_protoc_outputs_header) $(benchmarks_protoc_outputs_proto2_header) $(top_srcdir)/src/libprotobuf.la $(top_srcdir)/third_party/benchmark/src/libbenchmark.a |
BSBandme | a194ffa | 2018-07-06 12:25:52 -0700 | [diff] [blame] | 112 | cpp/benchmark-cpp_benchmark.$(OBJEXT): $(benchmarks_protoc_outputs) $(benchmarks_protoc_outputs_proto2) $(benchmarks_protoc_outputs_header) $(benchmarks_protoc_outputs_proto2_header) $(top_srcdir)/src/libprotobuf.la $(top_srcdir)/third_party/benchmark/src/libbenchmark.a |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 113 | nodist_cpp_benchmark_SOURCES = \ |
| 114 | $(benchmarks_protoc_outputs) \ |
| 115 | $(benchmarks_protoc_outputs_proto2) \ |
| 116 | $(benchmarks_protoc_outputs_proto2_header) \ |
| 117 | $(benchmarks_protoc_outputs_header) |
| 118 | |
Yilun Chong | 4b02091 | 2017-12-14 17:26:16 -0800 | [diff] [blame] | 119 | cpp: protoc_middleman protoc_middleman2 cpp-benchmark initialize_submodule |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 120 | ./cpp-benchmark $(all_data) |
| 121 | |
| 122 | ############ CPP RULES END ############ |
| 123 | |
| 124 | ############# JAVA RULES ############## |
| 125 | |
Yilun Chong | 4b02091 | 2017-12-14 17:26:16 -0800 | [diff] [blame] | 126 | java_benchmark_testing_files = \ |
Yilun Chong | 6cd4ec4 | 2018-02-09 11:47:00 -0800 | [diff] [blame] | 127 | java/src/main/java/com/google/protobuf/ProtoCaliperBenchmark.java |
Yilun Chong | 5e732e3 | 2017-12-12 12:05:29 -0800 | [diff] [blame] | 128 | |
| 129 | javac_middleman: $(java_benchmark_testing_files) protoc_middleman protoc_middleman2 |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 130 | cp -r $(srcdir)/java tmp |
Yilun Chong | 98e0972 | 2018-05-21 14:56:56 -0700 | [diff] [blame] | 131 | mkdir -p tmp/java/lib |
| 132 | cp $(top_srcdir)/java/core/target/*.jar tmp/java/lib/protobuf-java.jar |
| 133 | cd tmp/java && mvn clean compile assembly:single -Dprotobuf.version=$(PACKAGE_VERSION) && cd ../.. |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 134 | @touch javac_middleman |
| 135 | |
Yilun Chong | fa60e55 | 2018-01-09 10:24:50 -0800 | [diff] [blame] | 136 | java-benchmark: javac_middleman |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 137 | @echo "Writing shortcut script java-benchmark..." |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 138 | @echo '#! /bin/bash' > java-benchmark |
Yilun Chong | 0921345 | 2018-04-13 14:54:58 -0700 | [diff] [blame] | 139 | @echo 'all_data=""' >> java-benchmark |
| 140 | @echo 'conf=()' >> java-benchmark |
| 141 | @echo 'data_files=""' >> java-benchmark |
| 142 | @echo 'for arg in $$@; do if [[ $${arg:0:1} == "-" ]]; then conf+=($$arg); else data_files+="$$arg,"; fi; done' >> java-benchmark |
Yilun Chong | 98e0972 | 2018-05-21 14:56:56 -0700 | [diff] [blame] | 143 | @echo 'java -cp '\"tmp/java/target/*:$(top_srcdir)/java/core/target/*:$(top_srcdir)/java/util/target/*\"" \\" >>java-benchmark |
| 144 | @echo ' com.google.caliper.runner.CaliperMain com.google.protobuf.ProtoCaliperBenchmark -i runtime '"\\" >> java-benchmark |
| 145 | @echo ' -b serializeToByteArray,serializeToMemoryStream,deserializeFromByteArray,deserializeFromMemoryStream '"\\" >> java-benchmark |
| 146 | @echo ' -DdataFile=$${data_files:0:-1} $${conf[*]}' >> java-benchmark |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 147 | @chmod +x java-benchmark |
| 148 | |
| 149 | java: protoc_middleman protoc_middleman2 java-benchmark |
| 150 | ./java-benchmark $(all_data) |
| 151 | |
| 152 | ############# JAVA RULES END ############## |
| 153 | |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 154 | |
| 155 | ############# PYTHON RULES ############## |
| 156 | |
| 157 | python_add_init: protoc_middleman protoc_middleman2 |
| 158 | all_file=`find tmp -type f -regex '.*\.py'` && \ |
| 159 | for file in $${all_file[@]}; do \ |
| 160 | path="$${file%/*}"; \ |
| 161 | while true; do \ |
| 162 | touch "$$path/__init__.py" && chmod +x "$$path/__init__.py"; \ |
| 163 | if [[ $$path != *"/"* ]]; then break; fi; \ |
| 164 | path=$${path%/*}; \ |
| 165 | done \ |
| 166 | done |
| 167 | |
| 168 | python_cpp_pkg_flags = `pkg-config --cflags --libs python` |
| 169 | |
| 170 | lib_LTLIBRARIES = libbenchmark_messages.la |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 171 | libbenchmark_messages_la_SOURCES = python/python_benchmark_messages.cc |
Yilun Chong | fa60e55 | 2018-01-09 10:24:50 -0800 | [diff] [blame] | 172 | libbenchmark_messages_la_LIBADD = $(top_srcdir)/src/.libs/libprotobuf.la |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 173 | libbenchmark_messages_la_LDFLAGS = -version-info 1:0:0 -export-dynamic |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 174 | libbenchmark_messages_la_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/cpp $(python_cpp_pkg_flags) |
| 175 | libbenchmark_messages_la-python_benchmark_messages.$(OBJEXT): $(benchmarks_protoc_outputs_header) $(benchmarks_protoc_outputs_proto2_header) $(benchmarks_protoc_outputs) $(benchmarks_protoc_outputs_proto2) |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 176 | nodist_libbenchmark_messages_la_SOURCES = \ |
| 177 | $(benchmarks_protoc_outputs) \ |
| 178 | $(benchmarks_protoc_outputs_proto2) \ |
| 179 | $(benchmarks_protoc_outputs_proto2_header) \ |
| 180 | $(benchmarks_protoc_outputs_header) |
| 181 | |
| 182 | python-pure-python-benchmark: python_add_init |
| 183 | @echo "Writing shortcut script python-pure-python-benchmark..." |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 184 | @echo '#! /bin/bash' > python-pure-python-benchmark |
Yilun Chong | d69fd03 | 2018-05-21 18:59:39 -0700 | [diff] [blame] | 185 | @echo export LD_LIBRARY_PATH=$(top_srcdir)/src/.libs >> python-pure-python-benchmark |
| 186 | @echo export DYLD_LIBRARY_PATH=$(top_srcdir)/src/.libs >> python-pure-python-benchmark |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 187 | @echo export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=\'python\' >> python-pure-python-benchmark |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 188 | @echo cp $(srcdir)/python/py_benchmark.py tmp >> python-pure-python-benchmark |
Yilun Chong | 805174e | 2018-04-10 13:26:17 -0700 | [diff] [blame] | 189 | @echo python tmp/py_benchmark.py '$$@' >> python-pure-python-benchmark |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 190 | @chmod +x python-pure-python-benchmark |
| 191 | |
| 192 | python-cpp-reflection-benchmark: python_add_init |
| 193 | @echo "Writing shortcut script python-cpp-reflection-benchmark..." |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 194 | @echo '#! /bin/bash' > python-cpp-reflection-benchmark |
Yilun Chong | d69fd03 | 2018-05-21 18:59:39 -0700 | [diff] [blame] | 195 | @echo export LD_LIBRARY_PATH=$(top_srcdir)/src/.libs >> python-cpp-reflection-benchmark |
| 196 | @echo export DYLD_LIBRARY_PATH=$(top_srcdir)/src/.libs >> python-cpp-reflection-benchmark |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 197 | @echo export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=\'cpp\' >> python-cpp-reflection-benchmark |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 198 | @echo cp $(srcdir)/python/py_benchmark.py tmp >> python-cpp-reflection-benchmark |
Yilun Chong | 805174e | 2018-04-10 13:26:17 -0700 | [diff] [blame] | 199 | @echo python tmp/py_benchmark.py '$$@' >> python-cpp-reflection-benchmark |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 200 | @chmod +x python-cpp-reflection-benchmark |
| 201 | |
| 202 | python-cpp-generated-code-benchmark: python_add_init libbenchmark_messages.la |
| 203 | @echo "Writing shortcut script python-cpp-generated-code-benchmark..." |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 204 | @echo '#! /bin/bash' > python-cpp-generated-code-benchmark |
Yilun Chong | d69fd03 | 2018-05-21 18:59:39 -0700 | [diff] [blame] | 205 | @echo export LD_LIBRARY_PATH=$(top_srcdir)/src/.libs >> python-cpp-generated-code-benchmark |
| 206 | @echo export DYLD_LIBRARY_PATH=$(top_srcdir)/src/.libs >> python-cpp-generated-code-benchmark |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 207 | @echo export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=\'cpp\' >> python-cpp-generated-code-benchmark |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 208 | @echo cp $(srcdir)/python/py_benchmark.py tmp >> python-cpp-generated-code-benchmark |
Yilun Chong | 805174e | 2018-04-10 13:26:17 -0700 | [diff] [blame] | 209 | @echo python tmp/py_benchmark.py --cpp_generated '$$@' >> python-cpp-generated-code-benchmark |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 210 | @chmod +x python-cpp-generated-code-benchmark |
| 211 | |
| 212 | python-pure-python: python-pure-python-benchmark |
| 213 | ./python-pure-python-benchmark $(all_data) |
| 214 | |
| 215 | python-cpp-reflection: python-cpp-reflection-benchmark |
| 216 | ./python-cpp-reflection-benchmark $(all_data) |
| 217 | |
| 218 | python-cpp-generated-code: python-cpp-generated-code-benchmark |
| 219 | ./python-cpp-generated-code-benchmark $(all_data) |
| 220 | |
| 221 | ############# PYTHON RULES END ############## |
| 222 | |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 223 | ############# GO RULES BEGIN ############## |
| 224 | |
| 225 | benchmarks_protoc_inputs_proto2_message1 = \ |
| 226 | datasets/google_message1/proto2/benchmark_message1_proto2.proto |
| 227 | |
| 228 | benchmarks_protoc_inputs_proto2_message2 = \ |
| 229 | datasets/google_message2/benchmark_message2.proto |
| 230 | |
| 231 | benchmarks_protoc_inputs_proto2_message3 = \ |
| 232 | datasets/google_message3/benchmark_message3.proto \ |
| 233 | datasets/google_message3/benchmark_message3_1.proto \ |
| 234 | datasets/google_message3/benchmark_message3_2.proto \ |
| 235 | datasets/google_message3/benchmark_message3_3.proto \ |
| 236 | datasets/google_message3/benchmark_message3_4.proto \ |
| 237 | datasets/google_message3/benchmark_message3_5.proto \ |
| 238 | datasets/google_message3/benchmark_message3_6.proto \ |
| 239 | datasets/google_message3/benchmark_message3_7.proto \ |
| 240 | datasets/google_message3/benchmark_message3_8.proto |
| 241 | |
| 242 | benchmarks_protoc_inputs_proto2_message4 = \ |
| 243 | datasets/google_message4/benchmark_message4.proto \ |
| 244 | datasets/google_message4/benchmark_message4_1.proto \ |
| 245 | datasets/google_message4/benchmark_message4_2.proto \ |
| 246 | datasets/google_message4/benchmark_message4_3.proto |
| 247 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 248 | go_protoc_middleman: make_tmp_dir $(top_srcdir)/src/protoc$(EXEEXT) $(benchmarks_protoc_inputs) $(well_known_type_protoc_inputs) $(benchmarks_protoc_inputs_proto2_message1) $(benchmarks_protoc_inputs_proto2_message2) $(benchmarks_protoc_inputs_proto2_message3) $(benchmarks_protoc_inputs_proto2_message4) $(well_known_type_protoc_inputs) |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 249 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out=$$oldpwd/tmp $(benchmarks_protoc_inputs) ) |
| 250 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out=$$oldpwd/tmp $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 251 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out=$$oldpwd/tmp $(benchmarks_protoc_inputs_proto2_message1) ) |
| 252 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out=$$oldpwd/tmp $(benchmarks_protoc_inputs_proto2_message2) ) |
| 253 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out=$$oldpwd/tmp $(benchmarks_protoc_inputs_proto2_message3) ) |
| 254 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out=$$oldpwd/tmp $(benchmarks_protoc_inputs_proto2_message4) ) |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 255 | touch go_protoc_middleman |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 256 | |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 257 | go-benchmark: go_protoc_middleman |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 258 | @echo "Writing shortcut script go-benchmark..." |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 259 | @echo '#! /bin/bash' > go-benchmark |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 260 | @echo 'cd $(srcdir)/go' >> go-benchmark |
| 261 | @echo 'all_data=""' >> go-benchmark |
Yilun Chong | 805174e | 2018-04-10 13:26:17 -0700 | [diff] [blame] | 262 | @echo 'conf=()' >> go-benchmark |
| 263 | @echo 'data_files=()' >> go-benchmark |
Yilun Chong | cee0447 | 2018-09-25 16:05:16 -0700 | [diff] [blame] | 264 | @echo 'for arg in $$@; do if [[ $${arg:0:1} == "-" ]]; then conf+=($$arg); else data_files+=("$$arg"); fi; done' >> go-benchmark |
Yilun Chong | 805174e | 2018-04-10 13:26:17 -0700 | [diff] [blame] | 265 | @echo 'go test -bench=. $${conf[*]} -- $${data_files[*]}' >> go-benchmark |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 266 | @echo 'cd ..' >> go-benchmark |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 267 | @chmod +x go-benchmark |
| 268 | |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 269 | go: go_protoc_middleman go-benchmark |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 270 | ./go-benchmark $(all_data) |
| 271 | |
| 272 | ############# GO RULES END ############## |
| 273 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 274 | ############# GOGO RULES BEGIN ############ |
| 275 | |
| 276 | cpp_no_group_benchmarks_protoc_outputs_header = \ |
| 277 | gogo/cpp_no_group/benchmarks.pb.h \ |
| 278 | gogo/cpp_no_group/datasets/google_message1/proto3/benchmark_message1_proto3.pb.h |
| 279 | |
| 280 | cpp_no_group_benchmarks_protoc_outputs = \ |
| 281 | gogo/cpp_no_group/benchmarks.pb.cc \ |
| 282 | gogo/cpp_no_group/datasets/google_message1/proto3/benchmark_message1_proto3.pb.cc |
| 283 | |
| 284 | cpp_no_group_benchmarks_protoc_outputs_proto2_header = \ |
| 285 | gogo/cpp_no_group/datasets/google_message1/proto2/benchmark_message1_proto2.pb.h \ |
| 286 | gogo/cpp_no_group/datasets/google_message2/benchmark_message2.pb.h \ |
| 287 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3.pb.h \ |
| 288 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_1.pb.h \ |
| 289 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_2.pb.h \ |
| 290 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_3.pb.h \ |
| 291 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_4.pb.h \ |
| 292 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_5.pb.h \ |
| 293 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_6.pb.h \ |
| 294 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_7.pb.h \ |
| 295 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_8.pb.h \ |
| 296 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4.pb.h \ |
| 297 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4_1.pb.h \ |
| 298 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4_2.pb.h \ |
| 299 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4_3.pb.h |
| 300 | |
| 301 | cpp_no_group_benchmarks_protoc_outputs_proto2 = \ |
| 302 | gogo/cpp_no_group/datasets/google_message1/proto2/benchmark_message1_proto2.pb.cc \ |
| 303 | gogo/cpp_no_group/datasets/google_message2/benchmark_message2.pb.cc \ |
| 304 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3.pb.cc \ |
| 305 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_1.pb.cc \ |
| 306 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_2.pb.cc \ |
| 307 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_3.pb.cc \ |
| 308 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_4.pb.cc \ |
| 309 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_5.pb.cc \ |
| 310 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_6.pb.cc \ |
| 311 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_7.pb.cc \ |
| 312 | gogo/cpp_no_group/datasets/google_message3/benchmark_message3_8.pb.cc \ |
| 313 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4.pb.cc \ |
| 314 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4_1.pb.cc \ |
| 315 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4_2.pb.cc \ |
| 316 | gogo/cpp_no_group/datasets/google_message4/benchmark_message4_3.pb.cc |
| 317 | |
| 318 | $(cpp_no_group_benchmarks_protoc_outputs): cpp_no_group_protoc_middleman |
| 319 | $(cpp_no_group_benchmarks_protoc_outputs_header): cpp_no_group_protoc_middleman |
| 320 | $(cpp_no_group_benchmarks_protoc_outputs_proto2): cpp_no_group_protoc_middleman |
| 321 | $(cpp_no_group_benchmarks_protoc_outputs_proto2_header): cpp_no_group_protoc_middleman |
| 322 | |
| 323 | generate_cpp_no_group_benchmark_code: |
| 324 | cp $(srcdir)/cpp/cpp_benchmark.cc gogo/cpp_no_group/cpp_benchmark.cc |
| 325 | sed -i -e "s/\#include \"datasets/\#include \"gogo\/cpp_no_group\/datasets/g" gogo/cpp_no_group/cpp_benchmark.cc |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 326 | sed -i -e "s/\#include \"benchmarks.pb.h/\#include \"gogo\/cpp_no_group\/benchmarks.pb.h/g" gogo/cpp_no_group/cpp_benchmark.cc |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 327 | touch generate_cpp_no_group_benchmark_code |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 328 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 329 | bin_PROGRAMS += cpp-no-group-benchmark |
| 330 | cpp_no_group_benchmark_LDADD = $(top_srcdir)/src/libprotobuf.la $(top_srcdir)/third_party/benchmark/src/libbenchmark.a |
| 331 | cpp_no_group_benchmark_SOURCES = gogo/cpp_no_group/cpp_benchmark.cc |
| 332 | cpp_no_group_benchmark_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/gogo/cpp_no_group -I$(top_srcdir)/third_party/benchmark/include |
| 333 | # Explicit deps because BUILT_SOURCES are only done before a "make all/check" |
| 334 | # so a direct "make test_cpp" could fail if parallel enough. |
| 335 | # See: https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html#Recording-Dependencies-manually |
| 336 | gogo/cpp_no_group/cpp_no_group_benchmark-cpp_benchmark.$(OBJEXT): $(cpp_no_group_benchmarks_protoc_outputs) $(cpp_no_group_benchmarks_protoc_outputs_proto2) $(cpp_no_group_benchmarks_protoc_outputs_header) \ |
| 337 | $(cpp_no_group_benchmarks_protoc_outputs_proto2_header) $(top_srcdir)/third_party/benchmark/src/libbenchmark.a generate_cpp_no_group_benchmark_code |
| 338 | gogo/cpp_no_group/cpp_benchmark.cc: generate_cpp_no_group_benchmark_code |
| 339 | nodist_cpp_no_group_benchmark_SOURCES = \ |
| 340 | $(cpp_no_group_benchmarks_protoc_outputs_proto2) \ |
| 341 | $(cpp_no_group_benchmarks_protoc_outputs) \ |
| 342 | $(cpp_no_group_benchmarks_protoc_outputs_header) \ |
| 343 | $(cpp_no_group_benchmarks_protoc_outputs_proto2_header) |
| 344 | |
| 345 | cpp_no_group: cpp_no_group_protoc_middleman generate_gogo_data cpp-no-group-benchmark |
| 346 | ./cpp-no-group-benchmark $(gogo_data) |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 347 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 348 | gogo_proto_middleman: protoc-gen-gogoproto |
| 349 | mkdir -p "tmp/gogo_proto" |
| 350 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I$(srcdir) -I$(top_srcdir) --plugin=protoc-gen-gogoproto --gogoproto_out=$$oldpwd/tmp/gogo_proto $(benchmarks_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) $(benchmarks_protoc_inputs_proto2) ) |
| 351 | touch gogo_proto_middleman |
| 352 | |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 353 | gogo_data = $$(for data in $(all_data); do echo "tmp/gogo_data$${data\#$(srcdir)}"; done | xargs) |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 354 | |
| 355 | generate_gogo_data: protoc_middleman protoc_middleman2 gogo-data-scrubber |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 356 | mkdir -p `dirname $(gogo_data)` |
| 357 | ./gogo-data-scrubber $(all_data) $(gogo_data) |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 358 | touch generate_gogo_data |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 359 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 360 | make_tmp_dir_gogo: |
| 361 | mkdir -p tmp/go_no_group/benchmark_code |
| 362 | mkdir -p tmp/gogofast/benchmark_code |
| 363 | mkdir -p tmp/gogofaster/benchmark_code |
| 364 | mkdir -p tmp/gogoslick/benchmark_code |
| 365 | touch make_tmp_dir_gogo |
| 366 | |
| 367 | go_no_group_protoc_middleman: make_tmp_dir_gogo $(top_srcdir)/src/protoc$(EXEEXT) gogo_proto_middleman $(well_known_type_protoc_inputs) |
| 368 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --go_out=$$oldpwd/tmp/go_no_group $(benchmarks_protoc_inputs) ) |
| 369 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --go_out=$$oldpwd/tmp/go_no_group $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
| 370 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --go_out=$$oldpwd/tmp/go_no_group $(benchmarks_protoc_inputs_proto2_message1) ) |
| 371 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --go_out=$$oldpwd/tmp/go_no_group $(benchmarks_protoc_inputs_proto2_message2) ) |
| 372 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --go_out=$$oldpwd/tmp/go_no_group $(benchmarks_protoc_inputs_proto2_message3) ) |
| 373 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --go_out=$$oldpwd/tmp/go_no_group $(benchmarks_protoc_inputs_proto2_message4) ) |
| 374 | touch go_no_group_protoc_middleman |
| 375 | |
| 376 | cpp_no_group_protoc_middleman: make_tmp_dir_gogo $(top_srcdir)/src/protoc$(EXEEXT) gogo_proto_middleman $(well_known_type_protoc_inputs) |
| 377 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --cpp_out=$$oldpwd/gogo/cpp_no_group $(benchmarks_protoc_inputs) ) |
| 378 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --cpp_out=$$oldpwd/gogo/cpp_no_group $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
| 379 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --cpp_out=$$oldpwd/gogo/cpp_no_group $(benchmarks_protoc_inputs_proto2_message1) ) |
| 380 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --cpp_out=$$oldpwd/gogo/cpp_no_group $(benchmarks_protoc_inputs_proto2_message2) ) |
| 381 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --cpp_out=$$oldpwd/gogo/cpp_no_group $(benchmarks_protoc_inputs_proto2_message3) ) |
| 382 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --cpp_out=$$oldpwd/gogo/cpp_no_group $(benchmarks_protoc_inputs_proto2_message4) ) |
| 383 | touch cpp_no_group_protoc_middleman |
| 384 | |
| 385 | gogofast_protoc_middleman: make_tmp_dir_gogo $(top_srcdir)/src/protoc$(EXEEXT) gogo_proto_middleman $(well_known_type_protoc_inputs) |
| 386 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofast_out=$$oldpwd/tmp/gogofast $(benchmarks_protoc_inputs) ) |
| 387 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofast_out=$$oldpwd/tmp/gogofast $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
| 388 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofast_out=$$oldpwd/tmp/gogofast $(benchmarks_protoc_inputs_proto2_message1) ) |
| 389 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofast_out=$$oldpwd/tmp/gogofast $(benchmarks_protoc_inputs_proto2_message2) ) |
| 390 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofast_out=$$oldpwd/tmp/gogofast $(benchmarks_protoc_inputs_proto2_message3) ) |
| 391 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofast_out=$$oldpwd/tmp/gogofast $(benchmarks_protoc_inputs_proto2_message4) ) |
| 392 | touch gogofast_protoc_middleman |
| 393 | |
| 394 | gogofaster_protoc_middleman: make_tmp_dir_gogo $(top_srcdir)/src/protoc$(EXEEXT) gogo_proto_middleman $(well_known_type_protoc_inputs) |
| 395 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofaster_out=$$oldpwd/tmp/gogofaster $(benchmarks_protoc_inputs) ) |
| 396 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofaster_out=$$oldpwd/tmp/gogofaster $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
| 397 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofaster_out=$$oldpwd/tmp/gogofaster $(benchmarks_protoc_inputs_proto2_message1) ) |
| 398 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofaster_out=$$oldpwd/tmp/gogofaster $(benchmarks_protoc_inputs_proto2_message2) ) |
| 399 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofaster_out=$$oldpwd/tmp/gogofaster $(benchmarks_protoc_inputs_proto2_message3) ) |
| 400 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogofaster_out=$$oldpwd/tmp/gogofaster $(benchmarks_protoc_inputs_proto2_message4) ) |
| 401 | touch gogofaster_protoc_middleman |
| 402 | |
| 403 | gogoslick_protoc_middleman: make_tmp_dir_gogo $(top_srcdir)/src/protoc$(EXEEXT) gogo_proto_middleman $(well_known_type_protoc_inputs) |
| 404 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogoslick_out=$$oldpwd/tmp/gogoslick $(benchmarks_protoc_inputs) ) |
| 405 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogoslick_out=$$oldpwd/tmp/gogoslick $(benchmarks_protoc_inputs_benchmark_wrapper) ) |
| 406 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogoslick_out=$$oldpwd/tmp/gogoslick $(benchmarks_protoc_inputs_proto2_message1) ) |
| 407 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogoslick_out=$$oldpwd/tmp/gogoslick $(benchmarks_protoc_inputs_proto2_message2) ) |
| 408 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogoslick_out=$$oldpwd/tmp/gogoslick $(benchmarks_protoc_inputs_proto2_message3) ) |
| 409 | oldpwd=`pwd` && ( cd $(srcdir)/tmp/gogo_proto && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$$oldpwd/$(top_srcdir)/src --gogoslick_out=$$oldpwd/tmp/gogoslick $(benchmarks_protoc_inputs_proto2_message4) ) |
| 410 | touch gogoslick_protoc_middleman |
| 411 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 412 | generate-gogo-benchmark-code: |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 413 | @echo '#! /bin/bash' > generate-gogo-benchmark-code |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 414 | @echo 'cp $(srcdir)/go/go_benchmark_test.go tmp/$$1/benchmark_code/$$1_benchmark1_test.go' >> generate-gogo-benchmark-code |
| 415 | @echo 'sed -i -e "s/\.\.\/tmp/../g" tmp/$$1/benchmark_code/$$1_benchmark1_test.go' >> generate-gogo-benchmark-code |
| 416 | @echo 'sed -i -e "s/b\.Run(\"\(.*\)\"/b.Run(\"\1\_$$1\"/g" tmp/$$1/benchmark_code/$$1_benchmark1_test.go' >> generate-gogo-benchmark-code |
| 417 | @echo 'if [[ $$2 == 1 ]]; then sed -i -e "s/github\.com\/golang/github.com\/gogo/g" tmp/$$1/benchmark_code/$$1_benchmark1_test.go; fi ' >> generate-gogo-benchmark-code |
| 418 | @chmod +x generate-gogo-benchmark-code |
| 419 | |
| 420 | generate_all_gogo_benchmark_code: generate-gogo-benchmark-code make_tmp_dir_gogo |
| 421 | ./generate-gogo-benchmark-code go_no_group 0 |
| 422 | ./generate-gogo-benchmark-code gogofast 1 |
| 423 | ./generate-gogo-benchmark-code gogofaster 1 |
| 424 | ./generate-gogo-benchmark-code gogoslick 1 |
| 425 | |
| 426 | gogo-benchmark: |
| 427 | @echo "Writing shortcut script gogo-benchmark..." |
Yilun Chong | 8f35073 | 2018-04-16 17:01:18 -0700 | [diff] [blame] | 428 | @echo '#! /bin/bash' > gogo-benchmark |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 429 | @echo 'cd tmp/$$1/benchmark_code' >> gogo-benchmark |
| 430 | @echo 'shift' >> gogo-benchmark |
| 431 | @echo 'all_data=""' >> gogo-benchmark |
| 432 | @echo 'for data_file in $$@; do all_data="$$all_data ../../../$$data_file"; done' >> gogo-benchmark |
| 433 | @echo 'go test -bench=. -- $$all_data' >> gogo-benchmark |
| 434 | @echo 'cd ../..' >> gogo-benchmark |
| 435 | @chmod +x gogo-benchmark |
| 436 | |
| 437 | go_no_group: go_no_group_protoc_middleman generate_gogo_data generate_all_gogo_benchmark_code gogo-benchmark |
| 438 | ./gogo-benchmark go_no_group $(gogo_data) |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 439 | |
| 440 | gogofast: gogofast_protoc_middleman generate_gogo_data gogo-benchmark generate_all_gogo_benchmark_code |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 441 | ./gogo-benchmark gogofast $(gogo_data) |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 442 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 443 | gogofaster: gogofaster_protoc_middleman generate_gogo_data gogo-benchmark generate_all_gogo_benchmark_code |
| 444 | ./gogo-benchmark gogofaster $(gogo_data) |
| 445 | |
| 446 | gogoslick: gogoslick_protoc_middleman generate_gogo_data gogo-benchmark generate_all_gogo_benchmark_code |
| 447 | ./gogo-benchmark gogoslick $(gogo_data) |
| 448 | |
| 449 | |
| 450 | ############# GOGO RULES END ############ |
| 451 | |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 452 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 453 | ############ UTIL RULES BEGIN ############ |
| 454 | |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 455 | bin_PROGRAMS += protoc-gen-gogoproto gogo-data-scrubber protoc-gen-proto2_to_proto3 proto3-data-stripper |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 456 | |
| 457 | protoc_gen_gogoproto_LDADD = $(top_srcdir)/src/libprotobuf.la $(top_srcdir)/src/libprotoc.la |
| 458 | protoc_gen_gogoproto_SOURCES = util/protoc-gen-gogoproto.cc |
| 459 | protoc_gen_gogoproto_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/cpp -I$(srcdir)/util |
| 460 | |
| 461 | gogo_data_scrubber_LDADD = $(top_srcdir)/src/libprotobuf.la |
| 462 | gogo_data_scrubber_SOURCES = util/gogo_data_scrubber.cc |
| 463 | gogo_data_scrubber_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/cpp -I$(srcdir)/util |
| 464 | util/gogo_data_scrubber-gogo_data_scrubber.$(OBJEXT): $(benchmarks_protoc_outputs) $(benchmarks_protoc_outputs_proto2) $(benchmarks_protoc_outputs_header) $(benchmarks_protoc_outputs_proto2_header) |
| 465 | nodist_gogo_data_scrubber_SOURCES = \ |
| 466 | $(benchmarks_protoc_outputs) \ |
| 467 | $(benchmarks_protoc_outputs_proto2) \ |
| 468 | $(benchmarks_protoc_outputs_proto2_header) \ |
| 469 | $(benchmarks_protoc_outputs_header) |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 470 | |
| 471 | protoc_gen_proto2_to_proto3_LDADD = $(top_srcdir)/src/libprotobuf.la $(top_srcdir)/src/libprotoc.la |
| 472 | protoc_gen_proto2_to_proto3_SOURCES = util/protoc-gen-proto2_to_proto3.cc |
| 473 | protoc_gen_proto2_to_proto3_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/cpp -I$(srcdir)/util |
| 474 | |
| 475 | proto3_data_stripper_LDADD = $(top_srcdir)/src/libprotobuf.la |
| 476 | proto3_data_stripper_SOURCES = util/proto3_data_stripper.cc |
| 477 | proto3_data_stripper_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)/cpp -I$(srcdir)/util |
| 478 | util/proto3_data_stripper-proto3_data_stripper.$(OBJEXT): $(benchmarks_protoc_outputs) $(benchmarks_protoc_outputs_proto2) $(benchmarks_protoc_outputs_header) $(benchmarks_protoc_outputs_proto2_header) |
| 479 | nodist_proto3_data_stripper_SOURCES = \ |
| 480 | $(benchmarks_protoc_outputs) \ |
| 481 | $(benchmarks_protoc_outputs_proto2) \ |
| 482 | $(benchmarks_protoc_outputs_proto2_header) \ |
| 483 | $(benchmarks_protoc_outputs_header) |
| 484 | |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 485 | |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 486 | ############ UTIL RULES END ############ |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 487 | |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 488 | ############ PROTO3 PREPARATION BEGIN ############# |
| 489 | |
| 490 | proto3_proto_middleman: protoc-gen-proto2_to_proto3 |
| 491 | mkdir -p "tmp/proto3_proto" |
| 492 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I$(srcdir) -I$(top_srcdir) --plugin=protoc-gen-proto2_to_proto3 --proto2_to_proto3_out=$$oldpwd/tmp/proto3_proto $(benchmarks_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) $(benchmarks_protoc_inputs_proto2) ) |
| 493 | touch proto3_proto_middleman |
| 494 | |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 495 | full_srcdir = $$(cd $(srcdir) && pwd) |
| 496 | proto3_data = $$(for data in $(all_data); do echo $(full_srcdir)"/tmp/proto3_data$${data\#$(full_srcdir)}"; done | xargs) |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 497 | |
| 498 | generate_proto3_data: protoc_middleman protoc_middleman2 proto3-data-stripper |
| 499 | mkdir -p `dirname $(proto3_data)` |
| 500 | ./proto3-data-stripper $(all_data) $(proto3_data) |
| 501 | touch generate_proto3_data |
| 502 | |
| 503 | ############ PROTO3 PREPARATION END ############# |
| 504 | |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 505 | ############ PHP RULES BEGIN ################# |
| 506 | |
| 507 | proto3_middleman_php: proto3_proto_middleman |
| 508 | mkdir -p "tmp/php" |
| 509 | oldpwd=`pwd` && ( cd tmp/proto3_proto && $$oldpwd/../src/protoc$(EXEEXT) -I$(srcdir) -I$(top_srcdir) --php_out=$$oldpwd/tmp/php $(benchmarks_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) $(benchmarks_protoc_inputs_proto2) ) |
| 510 | touch proto3_middleman_php |
| 511 | |
| 512 | php-benchmark: proto3_middleman_php generate_proto3_data |
| 513 | mkdir -p "tmp/php/Google/Protobuf/Benchmark" && cp php/PhpBenchmark.php "tmp/php/Google/Protobuf/Benchmark" |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 514 | cp php/autoload.php "tmp/php" |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 515 | @echo "Writing shortcut script php-benchmark..." |
| 516 | @echo '#! /bin/bash' > php-benchmark |
| 517 | @echo 'export PROTOBUF_PHP_SRCDIR="$$(cd $(top_srcdir) && pwd)/php/src"' >> php-benchmark |
| 518 | @echo 'cd tmp/php' >> php-benchmark |
| 519 | @echo 'export CURRENT_DIR=$$(pwd)' >> php-benchmark |
| 520 | @echo 'php -d auto_prepend_file="autoload.php" -d include_path="$$(pwd)" Google/Protobuf/Benchmark/PhpBenchmark.php $$@' >> php-benchmark |
| 521 | @echo 'cd ../..' >> php-benchmark |
| 522 | @chmod +x php-benchmark |
| 523 | |
| 524 | php: php-benchmark proto3_middleman_php |
Yilun Chong | 152c830 | 2018-12-20 17:15:51 -0800 | [diff] [blame] | 525 | ./php-benchmark --behavior_prefix="php" $(proto3_data) |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 526 | |
| 527 | php_c_extension: |
Yilun Chong | 152c830 | 2018-12-20 17:15:51 -0800 | [diff] [blame] | 528 | cd $(top_srcdir)/php/ext/google/protobuf && phpize && ./configure CFLAGS='-O3' && make -j8 |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 529 | |
| 530 | php-c-benchmark: proto3_middleman_php generate_proto3_data php_c_extension php_c_extension |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 531 | mkdir -p "tmp/php/Google/Protobuf/Benchmark" && cp php/PhpBenchmark.php "tmp/php/Google/Protobuf/Benchmark" |
| 532 | cp php/autoload.php "tmp/php" |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 533 | @echo "Writing shortcut script php-c-benchmark..." |
| 534 | @echo '#! /bin/bash' > php-c-benchmark |
| 535 | @echo 'export PROTOBUF_PHP_SRCDIR="$$(cd $(top_srcdir) && pwd)/php/src"' >> php-c-benchmark |
| 536 | @echo 'export PROTOBUF_PHP_EXTDIR="$$PROTOBUF_PHP_SRCDIR/../ext/google/protobuf/modules"' >> php-c-benchmark |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 537 | @echo 'cd tmp/php' >> php-c-benchmark |
| 538 | @echo 'export CURRENT_DIR=$$(pwd)' >> php-c-benchmark |
| 539 | @echo 'php -d auto_prepend_file="autoload.php" -d include_path="$$(pwd)" -d extension="$$PROTOBUF_PHP_EXTDIR/protobuf.so" Google/Protobuf/Benchmark/PhpBenchmark.php $$@' >> php-c-benchmark |
| 540 | @echo 'cd ../..' >> php-c-benchmark |
| 541 | @chmod +x php-c-benchmark |
| 542 | |
| 543 | php_c: php-c-benchmark proto3_middleman_php |
Yilun Chong | 152c830 | 2018-12-20 17:15:51 -0800 | [diff] [blame] | 544 | ./php-c-benchmark --behavior_prefix="php_c" $(proto3_data) |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 545 | |
| 546 | |
| 547 | ############ PHP RULES END ################# |
| 548 | |
Yilun Chong | a707129 | 2018-07-20 16:13:19 -0700 | [diff] [blame] | 549 | ############ protobuf.js RULE BEGIN ############# |
| 550 | |
| 551 | pbjs_preparation: |
| 552 | mkdir -p tmp/protobuf.js |
| 553 | cd tmp/protobuf.js && git clone https://github.com/dcodeIO/protobuf.js.git && \ |
| 554 | cd protobuf.js && npm install && npm run build |
| 555 | cd tmp/protobuf.js && npm install benchmark |
| 556 | cp protobuf.js/* tmp/protobuf.js |
Yilun Chong | 5a95666 | 2018-08-08 11:24:09 -0700 | [diff] [blame] | 557 | cp js/benchmark_suite.js tmp/protobuf.js |
Yilun Chong | a707129 | 2018-07-20 16:13:19 -0700 | [diff] [blame] | 558 | touch pbjs_preparation |
| 559 | |
| 560 | pbjs_middleman: pbjs_preparation |
Yilun Chong | 5a95666 | 2018-08-08 11:24:09 -0700 | [diff] [blame] | 561 | export OLDDIR=$$(pwd) && cd tmp/protobuf.js && node generate_pbjs_files.js --target static-module --include_path=$$OLDDIR -o generated_bundle_code.js $(benchmarks_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) $(benchmarks_protoc_inputs_proto2) |
Yilun Chong | a707129 | 2018-07-20 16:13:19 -0700 | [diff] [blame] | 562 | touch pbjs_middleman |
| 563 | |
| 564 | pbjs-benchmark: pbjs_middleman |
| 565 | @echo '#! /bin/bash' > pbjs-benchmark |
| 566 | @echo 'cd tmp/protobuf.js' >> pbjs-benchmark |
Yilun Chong | 5a95666 | 2018-08-08 11:24:09 -0700 | [diff] [blame] | 567 | @echo 'sed -i "s/protobufjs/.\/protobuf.js/g" generated_bundle_code.js' >> pbjs-benchmark |
| 568 | @echo 'env NODE_PATH=".:./node_modules:$$NODE_PATH" node protobufjs_benchmark.js $$@' >> pbjs-benchmark |
Yilun Chong | a707129 | 2018-07-20 16:13:19 -0700 | [diff] [blame] | 569 | @chmod +x pbjs-benchmark |
| 570 | |
| 571 | pbjs: pbjs-benchmark |
| 572 | ./pbjs-benchmark $(all_data) |
| 573 | |
| 574 | ############ protobuf.js RULE END ############# |
| 575 | |
| 576 | ############ JS RULE BEGIN ############# |
| 577 | |
| 578 | js_preparation: |
| 579 | mkdir -p tmp/js |
| 580 | oldpwd=$$(pwd) && cd $(top_srcdir)/js && npm install && npm test |
| 581 | cd tmp/js && npm install benchmark |
| 582 | cp js/* tmp/js |
| 583 | touch js_preparation |
| 584 | |
| 585 | js_middleman: js_preparation |
| 586 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --js_out=import_style=commonjs,binary:$$oldpwd/tmp/js $(benchmarks_protoc_inputs) $(benchmarks_protoc_inputs_benchmark_wrapper) $(benchmarks_protoc_inputs_proto2)) |
| 587 | touch js_middleman |
| 588 | |
| 589 | js-benchmark: js_middleman |
| 590 | @echo '#! /bin/bash' > js-benchmark |
| 591 | @echo 'export TOP_JS_SRCDIR=$$(cd $(top_srcdir)/js && pwd)' >> js-benchmark |
| 592 | @echo 'cd tmp/js' >> js-benchmark |
Yilun Chong | 5a95666 | 2018-08-08 11:24:09 -0700 | [diff] [blame] | 593 | @echo 'env NODE_PATH="$$TOP_JS_SRCDIR:.:./node_modules:$$NODE_PATH" node --max-old-space-size=4096 js_benchmark.js $$@' >> js-benchmark |
Yilun Chong | a707129 | 2018-07-20 16:13:19 -0700 | [diff] [blame] | 594 | @chmod +x js-benchmark |
| 595 | |
| 596 | js: js-benchmark |
| 597 | ./js-benchmark $(all_data) |
| 598 | |
| 599 | ############ JS RULE END ############# |
| 600 | |
Jie Luo | 84241c6 | 2019-08-27 13:16:28 -0700 | [diff] [blame] | 601 | EXTRA_DIST = \ |
| 602 | $(benchmarks_protoc_inputs_benchmark_wrapper) \ |
| 603 | $(benchmarks_protoc_inputs) \ |
| 604 | $(benchmarks_protoc_inputs_proto2) \ |
| 605 | google_size.proto |
| 606 | |
Yilun Chong | 1fd6c17 | 2017-12-04 14:39:08 -0800 | [diff] [blame] | 607 | MAINTAINERCLEANFILES = \ |
| 608 | Makefile.in |
| 609 | |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 610 | CLEANFILES = \ |
| 611 | $(benchmarks_protoc_outputs) \ |
| 612 | $(benchmarks_protoc_outputs_header) \ |
| 613 | $(benchmarks_protoc_outputs_proto2) \ |
| 614 | $(benchmarks_protoc_outputs_proto2_header) \ |
Yilun Chong | 4b02091 | 2017-12-14 17:26:16 -0800 | [diff] [blame] | 615 | initialize_submodule \ |
Yilun Chong | 1fd6c17 | 2017-12-04 14:39:08 -0800 | [diff] [blame] | 616 | make_tmp_dir \ |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 617 | protoc_middleman \ |
| 618 | protoc_middleman2 \ |
| 619 | javac_middleman \ |
Yilun Chong | 2fc69b1 | 2018-01-05 11:20:40 -0800 | [diff] [blame] | 620 | java-benchmark \ |
| 621 | python_cpp_proto_library \ |
| 622 | python-pure-python-benchmark \ |
| 623 | python-cpp-reflection-benchmark \ |
BSBandme | 4e3c413 | 2018-03-07 00:35:42 -0800 | [diff] [blame] | 624 | python-cpp-generated-code-benchmark \ |
| 625 | go-benchmark \ |
| 626 | go_protoc_middleman \ |
Yilun Chong | c703061 | 2018-04-10 14:32:28 -0700 | [diff] [blame] | 627 | make_tmp_dir_gogo \ |
| 628 | gogo_proto_middleman \ |
| 629 | generate_gogo_data \ |
| 630 | go_no_group_protoc_middleman \ |
| 631 | go_no_group \ |
| 632 | go-no-group-benchmark \ |
| 633 | $(cpp_no_group_benchmarks_protoc_outputs_header) \ |
| 634 | $(cpp_no_group_benchmarks_protoc_outputs) \ |
| 635 | $(cpp_no_group_benchmarks_protoc_outputs_proto2_header) \ |
| 636 | $(cpp_no_group_benchmarks_protoc_outputs_proto2) \ |
| 637 | generate_all_gogo_benchmark_code \ |
| 638 | generate-gogo-benchmark-code \ |
| 639 | cpp_no_group_protoc_middleman \ |
| 640 | generate_cpp_no_group_benchmark_code \ |
| 641 | generate_gogo_benchmark_code \ |
| 642 | gogofast_protoc_middleman \ |
| 643 | gogofast \ |
| 644 | gogofaster_protoc_middleman \ |
| 645 | gogofaster \ |
| 646 | gogoslick_protoc_middleman \ |
| 647 | gogoslick \ |
| 648 | gogo-benchmark \ |
Yilun Chong | 193af9f | 2018-05-30 17:06:45 -0700 | [diff] [blame] | 649 | gogo/cpp_no_group/cpp_benchmark.* \ |
| 650 | proto3_proto_middleman \ |
Yilun Chong | 7f57d13 | 2018-07-16 13:53:22 -0700 | [diff] [blame] | 651 | generate_proto3_data \ |
| 652 | php-benchmark \ |
| 653 | php-c-benchmark \ |
Yilun Chong | a707129 | 2018-07-20 16:13:19 -0700 | [diff] [blame] | 654 | proto3_middleman_php \ |
| 655 | pbjs_preparation \ |
| 656 | pbjs_middleman \ |
| 657 | pbjs-benchmark \ |
| 658 | js_preparation \ |
| 659 | js_middleman \ |
| 660 | js-benchmark |
Yilun Chong | 1c062a6 | 2017-12-01 11:55:38 -0800 | [diff] [blame] | 661 | |
| 662 | clean-local: |
| 663 | -rm -rf tmp/* |
Xiang Dai | e479410 | 2019-02-21 11:28:50 +0800 | [diff] [blame] | 664 | |