diff options
author | Yilun Chong <yilunchong@google.com> | 2018-09-25 16:05:16 -0700 |
---|---|---|
committer | Yilun Chong <yilunchong@google.com> | 2018-09-25 16:05:16 -0700 |
commit | cee0447fd99efe20672c1bd070d6cdd658143d43 (patch) | |
tree | aa028745463260ead216fa98f6b1fe5df98685ac /kokoro | |
parent | 4426cb573356c5ff710bff8ac8a1170baac7dcf0 (diff) | |
download | protobuf-cee0447fd99efe20672c1bd070d6cdd658143d43.tar.gz |
Add node and php to benchmark dashboard
Diffstat (limited to 'kokoro')
-rwxr-xr-x | kokoro/linux/benchmark/build.sh | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/kokoro/linux/benchmark/build.sh b/kokoro/linux/benchmark/build.sh index 527485c87..d83275397 100755 --- a/kokoro/linux/benchmark/build.sh +++ b/kokoro/linux/benchmark/build.sh @@ -19,7 +19,8 @@ fi # download datasets for benchmark cd benchmarks ./download_data.sh -datasets=`find . -type f -name "dataset.*.pb"` +datasets=$(for file in $(find . -type f -name "dataset.*.pb" -not -path "./tmp/*"); do echo "$(pwd)/$file"; done | xargs) +echo $datasets cd $oldpwd # build Python protobuf @@ -84,9 +85,24 @@ make java-benchmark echo "benchmarking java..." ./java-benchmark -Cresults.file.options.file="tmp/java_result.json" $datasets +make js-benchmark +echo "benchmarking js..." +./js-benchmark $datasets --json_output=$(pwd)/tmp/node_result.json + +make -j8 generate_proto3_data +proto3_datasets=$(for file in $datasets; do echo $(pwd)/tmp/proto3_data/${file#$(pwd)}; done | xargs) +echo $proto3_datasets + +# build php benchmark +make -j8 php-benchmark +echo "benchmarking php..." +./php-benchmark $proto3_datasets --json --behavior_prefix="php" > tmp/php_result.json +make -j8 php-c-benchmark +echo "benchmarking php_c..." +./php-c-benchmark $proto3_datasets --json --behavior_prefix="php_c" > tmp/php_c_result.json + # upload result to bq make python_add_init -env LD_LIBRARY_PATH="$oldpwd/src/.libs" python -m util.result_uploader -cpp="../tmp/cpp_result.json" -java="../tmp/java_result.json" \ - -python="../tmp/python_result.json" -go="../tmp/go_result.txt" - +env LD_LIBRARY_PATH="$oldpwd/src/.libs" python -m util.result_uploader -php="../tmp/php_result.json" -php_c="../tmp/php_c_result.json" \ + -cpp="../tmp/cpp_result.json" -java="../tmp/java_result.json" -go="../tmp/go_result.txt" -python="../tmp/python_result.json" -node="../tmp/node_result.json" cd $oldpwd |